Enum rustc_metadata::rmeta::EntryKind
source · [−]enum EntryKind {
Show 31 variants
AnonConst,
Const,
ImmStatic,
MutStatic,
ForeignImmStatic,
ForeignMutStatic,
ForeignMod,
ForeignType,
GlobalAsm,
Type,
TypeParam,
ConstParam,
OpaqueTy,
Enum(ReprOptions),
Field,
Variant(Lazy<VariantData>),
Struct(Lazy<VariantData>, ReprOptions),
Union(Lazy<VariantData>, ReprOptions),
Fn(Lazy<FnData>),
ForeignFn(Lazy<FnData>),
Mod(Lazy<[ModChild]>),
MacroDef(Lazy<MacArgs>, bool),
ProcMacro(MacroKind),
Closure,
Generator,
Trait(Lazy<TraitData>),
Impl,
AssocFn(Lazy<AssocFnData>),
AssocType(AssocContainer),
AssocConst(AssocContainer),
TraitAlias,
}Variants
AnonConst
Const
ImmStatic
MutStatic
ForeignImmStatic
ForeignMutStatic
ForeignMod
ForeignType
GlobalAsm
Type
TypeParam
ConstParam
OpaqueTy
Enum(ReprOptions)
Field
Variant(Lazy<VariantData>)
Struct(Lazy<VariantData>, ReprOptions)
Union(Lazy<VariantData>, ReprOptions)
Fn(Lazy<FnData>)
ForeignFn(Lazy<FnData>)
Mod(Lazy<[ModChild]>)
MacroDef(Lazy<MacArgs>, bool)
ProcMacro(MacroKind)
Closure
Generator
Trait(Lazy<TraitData>)
Impl
AssocFn(Lazy<AssocFnData>)
AssocType(AssocContainer)
AssocConst(AssocContainer)
TraitAlias
Trait Implementations
sourceimpl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for EntryKind
impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for EntryKind
fn decode(__decoder: &mut DecodeContext<'__a, 'tcx>) -> Self
sourceimpl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for EntryKind
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for EntryKind
impl Copy for EntryKind
Auto Trait Implementations
impl !RefUnwindSafe for EntryKind
impl !Send for EntryKind
impl !Sync for EntryKind
impl Unpin for EntryKind
impl !UnwindSafe for EntryKind
Blanket Implementations
sourceimpl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for T where
T: Copy,
impl<'tcx, T> ArenaAllocatable<'tcx, IsCopy> for T where
T: Copy,
fn allocate_on(self, arena: &'a Arena<'tcx>) -> &'a mut T
fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 32 bytes
Size for each variant:
AnonConst: 0 bytesConst: 0 bytesImmStatic: 0 bytesMutStatic: 0 bytesForeignImmStatic: 0 bytesForeignMutStatic: 0 bytesForeignMod: 0 bytesForeignType: 0 bytesGlobalAsm: 0 bytesType: 0 bytesTypeParam: 0 bytesConstParam: 0 bytesOpaqueTy: 0 bytesEnum: 23 bytesField: 0 bytesVariant: 15 bytesStruct: 31 bytesUnion: 31 bytesFn: 15 bytesForeignFn: 15 bytesMod: 23 bytesMacroDef: 15 bytesProcMacro: 1 byteClosure: 0 bytesGenerator: 0 bytesTrait: 15 bytesImpl: 0 bytesAssocFn: 15 bytesAssocType: 1 byteAssocConst: 1 byteTraitAlias: 0 bytes