Enum rustc_metadata::rmeta::EntryKind
source · [−]enum EntryKind {
Show 29 variants
AnonConst,
Const,
Static,
ForeignStatic,
ForeignMod,
ForeignType,
GlobalAsm,
Type,
TypeParam,
ConstParam,
OpaqueTy,
Enum,
Field,
Variant(LazyValue<VariantData>),
Struct(LazyValue<VariantData>),
Union(LazyValue<VariantData>),
Fn,
ForeignFn,
Mod(LazyArray<ModChild>),
MacroDef(LazyValue<MacArgs>, bool),
ProcMacro(MacroKind),
Closure,
Generator,
Trait,
Impl,
AssocFn {
container: AssocItemContainer,
has_self: bool,
},
AssocType(AssocItemContainer),
AssocConst(AssocItemContainer),
TraitAlias,
}Variants
AnonConst
Const
Static
ForeignStatic
ForeignMod
ForeignType
GlobalAsm
Type
TypeParam
ConstParam
OpaqueTy
Enum
Field
Variant(LazyValue<VariantData>)
Struct(LazyValue<VariantData>)
Union(LazyValue<VariantData>)
Fn
ForeignFn
Mod(LazyArray<ModChild>)
MacroDef(LazyValue<MacArgs>, bool)
ProcMacro(MacroKind)
Closure
Generator
Trait
Impl
AssocFn
AssocType(AssocItemContainer)
AssocConst(AssocItemContainer)
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
fn encode(&self, __encoder: &mut EncodeContext<'__a, 'tcx>)
sourceimpl ParameterizedOverTcx for EntryKind
impl ParameterizedOverTcx 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
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: 24 bytes
Size for each variant:
AnonConst: 0 bytesConst: 0 bytesStatic: 0 bytesForeignStatic: 0 bytesForeignMod: 0 bytesForeignType: 0 bytesGlobalAsm: 0 bytesType: 0 bytesTypeParam: 0 bytesConstParam: 0 bytesOpaqueTy: 0 bytesEnum: 0 bytesField: 0 bytesVariant: 15 bytesStruct: 15 bytesUnion: 15 bytesFn: 0 bytesForeignFn: 0 bytesMod: 23 bytesMacroDef: 15 bytesProcMacro: 1 byteClosure: 0 bytesGenerator: 0 bytesTrait: 0 bytesImpl: 0 bytesAssocFn: 2 bytesAssocType: 1 byteAssocConst: 1 byteTraitAlias: 0 bytes