Enum rustc_metadata::rmeta::EntryKind
source · [−]enum EntryKind {
Show 31 variants
AnonConst(ConstQualifs, Lazy<RenderedConst>),
Const(ConstQualifs, Lazy<RenderedConst>),
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<MacroDef>),
ProcMacro(MacroKind),
Closure,
Generator(GeneratorKind),
Trait(Lazy<TraitData>),
Impl(Lazy<ImplData>),
AssocFn(Lazy<AssocFnData>),
AssocType(AssocContainer),
AssocConst(AssocContainer, ConstQualifs, Lazy<RenderedConst>),
TraitAlias,
}Variants
AnonConst(ConstQualifs, Lazy<RenderedConst>)
Const(ConstQualifs, Lazy<RenderedConst>)
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<MacroDef>)
ProcMacro(MacroKind)
Closure
Generator(GeneratorKind)
Trait(Lazy<TraitData>)
Impl(Lazy<ImplData>)
AssocFn(Lazy<AssocFnData>)
AssocType(AssocContainer)
AssocConst(AssocContainer, ConstQualifs, Lazy<RenderedConst>)
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<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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: 15 bytesConst: 15 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: 1 byteTrait: 15 bytesImpl: 15 bytesAssocFn: 15 bytesAssocType: 1 byteAssocConst: 15 bytesTraitAlias: 0 bytes