pub(crate) struct ItemInner {
pub(crate) name: Option<Symbol>,
pub(crate) kind: ItemKind,
pub(crate) attrs: Attributes,
pub(crate) stability: Option<Stability>,
pub(crate) item_id: ItemId,
pub(crate) inline_stmt_id: Option<LocalDefId>,
pub(crate) cfg: Option<Arc<Cfg>>,
}Fields§
§name: Option<Symbol>The name of this item. Optional because not every item has a name, e.g. impls.
kind: ItemKindInformation about this item that is specific to what kind of item it is. E.g., struct vs enum vs function.
attrs: Attributes§stability: Option<Stability>The effective stability, filled out by the propagate-stability pass.
item_id: ItemId§inline_stmt_id: Option<LocalDefId>This is the LocalDefId of the use statement if the item was inlined.
The crate metadata doesn’t hold this information, so the use statement
always belongs to the current crate.
cfg: Option<Arc<Cfg>>Trait Implementations§
Auto Trait Implementations§
impl DynSend for ItemInnerwhere
ThinVec<PathSegment>: DynSend,
ThinVec<GenericParamDef>: DynSend,
ThinVec<WherePredicate>: DynSend,
ThinVec<Item>: DynSend,
Vec<Item>: DynSend,
Box<Function>: DynSend,
Box<TypeAlias>: DynSend,
Box<Type>: DynSend,
Box<Trait>: DynSend,
Vec<GenericBound>: DynSend,
Box<Impl>: DynSend,
Box<AssocFunction>: DynSend,
Vec<PolyTrait>: DynSend,
Box<BareFunctionDecl>: DynSend,
Vec<Type>: DynSend,
Box<str>: DynSend,
Box<QPathData>: DynSend,
Box<Path>: DynSend,
Box<UnsafeBinderTy>: DynSend,
Vec<u8>: DynSend,
Vec<Symbol>: DynSend,
Box<Constant>: DynSend,
Box<AssocConstant>: DynSend,
Box<AssocType>: DynSend,
Box<ItemKind>: DynSend,
Vec<DocFragment>: DynSend,
ThinVec<Attribute>: DynSend,
NonZeroU32Inner: DynSend,
Arc<Cfg>: DynSend,
impl DynSync for ItemInnerwhere
ThinVec<PathSegment>: DynSync,
ThinVec<GenericParamDef>: DynSync,
ThinVec<WherePredicate>: DynSync,
ThinVec<Item>: DynSync,
Vec<Item>: DynSync,
Box<Function>: DynSync,
Box<TypeAlias>: DynSync,
Box<Type>: DynSync,
Box<Trait>: DynSync,
Vec<GenericBound>: DynSync,
Box<Impl>: DynSync,
Box<AssocFunction>: DynSync,
Vec<PolyTrait>: DynSync,
Box<BareFunctionDecl>: DynSync,
Vec<Type>: DynSync,
Box<str>: DynSync,
Box<QPathData>: DynSync,
Box<Path>: DynSync,
Box<UnsafeBinderTy>: DynSync,
Vec<u8>: DynSync,
Vec<Symbol>: DynSync,
Box<Constant>: DynSync,
Box<AssocConstant>: DynSync,
Box<AssocType>: DynSync,
Box<ItemKind>: DynSync,
Vec<DocFragment>: DynSync,
ThinVec<Attribute>: DynSync,
NonZeroU32Inner: DynSync,
Arc<Cfg>: DynSync,
impl Forget for ItemInner
impl Freeze for ItemInnerwhere
*const Header is !null: Freeze,
PhantomData<PathSegment>: Freeze,
PhantomData<GenericParamDef>: Freeze,
PhantomData<WherePredicate>: Freeze,
PhantomData<Item>: Freeze,
*const u8 is !null: Freeze,
PhantomData<fn(&VariantIdx)>: Freeze,
*const Function is !null: Freeze,
PhantomData<Function>: Freeze,
*const TypeAlias is !null: Freeze,
PhantomData<TypeAlias>: Freeze,
*const Type is !null: Freeze,
PhantomData<Type>: Freeze,
*const Trait is !null: Freeze,
PhantomData<Trait>: Freeze,
PhantomData<GenericBound>: Freeze,
*const Impl is !null: Freeze,
PhantomData<Impl>: Freeze,
*const AssocFunction is !null: Freeze,
PhantomData<AssocFunction>: Freeze,
PhantomData<PolyTrait>: Freeze,
*const BareFunctionDecl is !null: Freeze,
PhantomData<BareFunctionDecl>: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const QPathData is !null: Freeze,
PhantomData<QPathData>: Freeze,
*const Path is !null: Freeze,
PhantomData<Path>: Freeze,
*const UnsafeBinderTy is !null: Freeze,
PhantomData<UnsafeBinderTy>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Symbol>: Freeze,
*const Constant is !null: Freeze,
PhantomData<Constant>: Freeze,
*const AssocConstant is !null: Freeze,
PhantomData<AssocConstant>: Freeze,
*const AssocType is !null: Freeze,
PhantomData<AssocType>: Freeze,
*const ItemKind is !null: Freeze,
PhantomData<ItemKind>: Freeze,
PhantomData<DocFragment>: Freeze,
PhantomData<Attribute>: Freeze,
NonZero<u32>: Freeze,
*const ArcInner<Cfg> is !null: Freeze,
PhantomData<ArcInner<Cfg>>: Freeze,
impl Move for ItemInner
impl RefUnwindSafe for ItemInner
impl Send for ItemInnerwhere
ThinVec<PathSegment>: Send,
ThinVec<GenericParamDef>: Send,
ThinVec<WherePredicate>: Send,
ThinVec<Item>: Send,
RawVecInner: Send,
BoxRaw<ItemInner>: Send,
IndexVec<VariantIdx, Item>: Send,
BoxRaw<Function>: Send,
BoxRaw<TypeAlias>: Send,
BoxRaw<Type>: Send,
BoxRaw<Trait>: Send,
ThinVec<Lifetime>: Send,
ThinVec<GenericBound>: Send,
BoxRaw<String>: Send,
BoxRaw<Impl>: Send,
BoxRaw<AssocFunction>: Send,
BoxRaw<BareFunctionDecl>: Send,
BoxRaw<str>: Send,
BoxRaw<QPathData>: Send,
BoxRaw<Path>: Send,
BoxRaw<UnsafeBinderTy>: Send,
BoxRaw<Constant>: Send,
BoxRaw<AssocConstant>: Send,
BoxRaw<AssocType>: Send,
BoxRaw<ItemKind>: Send,
ThinVec<Attribute>: Send,
NonZero<u32>: Send,
Arc<Cfg>: Send,
impl Sync for ItemInnerwhere
ThinVec<PathSegment>: Sync,
ThinVec<GenericParamDef>: Sync,
ThinVec<WherePredicate>: Sync,
ThinVec<Item>: Sync,
RawVecInner: Sync,
BoxRaw<ItemInner>: Sync,
BoxRaw<Function>: Sync,
BoxRaw<TypeAlias>: Sync,
BoxRaw<Type>: Sync,
BoxRaw<Trait>: Sync,
ThinVec<Lifetime>: Sync,
ThinVec<GenericBound>: Sync,
BoxRaw<String>: Sync,
BoxRaw<Impl>: Sync,
BoxRaw<AssocFunction>: Sync,
BoxRaw<BareFunctionDecl>: Sync,
BoxRaw<str>: Sync,
BoxRaw<QPathData>: Sync,
BoxRaw<Path>: Sync,
BoxRaw<UnsafeBinderTy>: Sync,
BoxRaw<Constant>: Sync,
BoxRaw<AssocConstant>: Sync,
BoxRaw<AssocType>: Sync,
BoxRaw<ItemKind>: Sync,
ThinVec<Attribute>: Sync,
NonZero<u32>: Sync,
Arc<Cfg>: Sync,
impl Unpin for ItemInnerwhere
*const Header is !null: Unpin,
*const u8 is !null: Unpin,
Box<Type>: Unpin,
Box<String>: Unpin,
Box<BareFunctionDecl>: Unpin,
Box<str>: Unpin,
Box<QPathData>: Unpin,
Box<Path>: Unpin,
Box<UnsafeBinderTy>: Unpin,
Box<ConstantExpr>: Unpin,
Box<ItemInner>: Unpin,
Box<Function>: Unpin,
Box<TypeAlias>: Unpin,
Box<Trait>: Unpin,
Box<Impl>: Unpin,
Box<AssocFunction>: Unpin,
Box<Constant>: Unpin,
Box<AssocConstant>: Unpin,
Box<AssocType>: Unpin,
Box<ItemKind>: Unpin,
Box<CfgEntry>: Unpin,
Box<DocAttribute>: Unpin,
Box<EiiImpl>: Unpin,
Box<Directive>: Unpin,
Box<RustcAutodiff>: Unpin,
NonZero<u32>: Unpin,
Box<GenericArgs>: Unpin,
Box<AttrItem>: Unpin,
Arc<Cfg>: Unpin,
impl UnsafeUnpin for ItemInnerwhere
*const Header is !null: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<GenericParamDef>: UnsafeUnpin,
PhantomData<WherePredicate>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<fn(&VariantIdx)>: UnsafeUnpin,
*const Function is !null: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
*const TypeAlias is !null: UnsafeUnpin,
PhantomData<TypeAlias>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const Trait is !null: UnsafeUnpin,
PhantomData<Trait>: UnsafeUnpin,
PhantomData<GenericBound>: UnsafeUnpin,
*const Impl is !null: UnsafeUnpin,
PhantomData<Impl>: UnsafeUnpin,
*const AssocFunction is !null: UnsafeUnpin,
PhantomData<AssocFunction>: UnsafeUnpin,
PhantomData<PolyTrait>: UnsafeUnpin,
*const BareFunctionDecl is !null: UnsafeUnpin,
PhantomData<BareFunctionDecl>: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const QPathData is !null: UnsafeUnpin,
PhantomData<QPathData>: UnsafeUnpin,
*const Path is !null: UnsafeUnpin,
PhantomData<Path>: UnsafeUnpin,
*const UnsafeBinderTy is !null: UnsafeUnpin,
PhantomData<UnsafeBinderTy>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Symbol>: UnsafeUnpin,
*const Constant is !null: UnsafeUnpin,
PhantomData<Constant>: UnsafeUnpin,
*const AssocConstant is !null: UnsafeUnpin,
PhantomData<AssocConstant>: UnsafeUnpin,
*const AssocType is !null: UnsafeUnpin,
PhantomData<AssocType>: UnsafeUnpin,
*const ItemKind is !null: UnsafeUnpin,
PhantomData<ItemKind>: UnsafeUnpin,
PhantomData<DocFragment>: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const ArcInner<Cfg> is !null: UnsafeUnpin,
PhantomData<ArcInner<Cfg>>: UnsafeUnpin,
impl UnwindSafe for ItemInnerwhere
NonNull<Header>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
BoxRaw<String>: UnwindSafe,
BoxRaw<BareFunctionDecl>: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<QPathData>: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
BoxRaw<UnsafeBinderTy>: UnwindSafe,
BoxRaw<ConstantExpr>: UnwindSafe,
BoxRaw<ItemInner>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<TypeAlias>: UnwindSafe,
BoxRaw<Trait>: UnwindSafe,
BoxRaw<Impl>: UnwindSafe,
BoxRaw<AssocFunction>: UnwindSafe,
BoxRaw<Constant>: UnwindSafe,
BoxRaw<AssocConstant>: UnwindSafe,
BoxRaw<AssocType>: UnwindSafe,
BoxRaw<ItemKind>: UnwindSafe,
BoxRaw<CfgEntry>: UnwindSafe,
BoxRaw<DocAttribute>: UnwindSafe,
BoxRaw<EiiImpl>: UnwindSafe,
BoxRaw<Directive>: UnwindSafe,
BoxRaw<RustcAutodiff>: UnwindSafe,
NonZero<u32>: UnwindSafe,
BoxRaw<GenericArgs>: UnwindSafe,
BoxRaw<AttrItem>: UnwindSafe,
Arc<Cfg>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 144 bytes