Enum rustc_metadata::rmeta::EntryKind[−][src]

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<[Export]>), 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>)

Tuple Fields

Const(ConstQualifs, Lazy<RenderedConst>)

Tuple Fields

ImmStatic

MutStatic

ForeignImmStatic

ForeignMutStatic

ForeignMod

ForeignType

GlobalAsm

Type

TypeParam

ConstParam

OpaqueTy

Enum(ReprOptions)

Tuple Fields

Field

Variant(Lazy<VariantData>)

Tuple Fields

Struct(Lazy<VariantData>, ReprOptions)

Tuple Fields

Union(Lazy<VariantData>, ReprOptions)

Tuple Fields

Fn(Lazy<FnData>)

Tuple Fields

ForeignFn(Lazy<FnData>)

Tuple Fields

Mod(Lazy<[Export]>)

Tuple Fields

MacroDef(Lazy<MacroDef>)

Tuple Fields

ProcMacro(MacroKind)

Tuple Fields

Closure

Generator(GeneratorKind)

Tuple Fields

Trait(Lazy<TraitData>)

Tuple Fields

Impl(Lazy<ImplData>)

Tuple Fields

AssocFn(Lazy<AssocFnData>)

Tuple Fields

AssocType(AssocContainer)

Tuple Fields

AssocConst(AssocContainer, ConstQualifs, Lazy<RenderedConst>)

TraitAlias

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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 bytes
  • Const: 15 bytes
  • ImmStatic: 0 bytes
  • MutStatic: 0 bytes
  • ForeignImmStatic: 0 bytes
  • ForeignMutStatic: 0 bytes
  • ForeignMod: 0 bytes
  • ForeignType: 0 bytes
  • GlobalAsm: 0 bytes
  • Type: 0 bytes
  • TypeParam: 0 bytes
  • ConstParam: 0 bytes
  • OpaqueTy: 0 bytes
  • Enum: 23 bytes
  • Field: 0 bytes
  • Variant: 15 bytes
  • Struct: 31 bytes
  • Union: 31 bytes
  • Fn: 15 bytes
  • ForeignFn: 15 bytes
  • Mod: 23 bytes
  • MacroDef: 15 bytes
  • ProcMacro: 1 byte
  • Closure: 0 bytes
  • Generator: 1 byte
  • Trait: 15 bytes
  • Impl: 15 bytes
  • AssocFn: 15 bytes
  • AssocType: 1 byte
  • AssocConst: 15 bytes
  • TraitAlias: 0 bytes