#[repr(u8)]pub enum DefKind {
Show 33 variants
Mod = 0,
Struct = 1,
Union = 2,
Enum = 3,
Variant = 4,
Trait = 5,
TyAlias = 6,
ForeignTy = 7,
TraitAlias = 8,
AssocTy = 9,
TyParam = 10,
Fn = 11,
Const = 12,
ConstParam = 13,
Static = 14,
StructCtor = 15,
VariantCtor = 16,
AssocFn = 17,
AssocConst = 18,
Macro = 19,
ExternCrate = 20,
Use = 21,
ForeignMod = 22,
AnonConst = 23,
InlineConst = 24,
OpaqueTy = 25,
Field = 26,
LifetimeParam = 27,
GlobalAsm = 28,
Impl = 29,
Closure = 30,
Local = 31,
Other = 255,
}Expand description
Category of definition, matching common Rust HIR DefKind.
Variants§
Mod = 0
Struct = 1
Union = 2
Enum = 3
Variant = 4
Trait = 5
TyAlias = 6
ForeignTy = 7
TraitAlias = 8
AssocTy = 9
TyParam = 10
Fn = 11
Const = 12
ConstParam = 13
Static = 14
StructCtor = 15
VariantCtor = 16
AssocFn = 17
AssocConst = 18
Macro = 19
ExternCrate = 20
Use = 21
ForeignMod = 22
AnonConst = 23
InlineConst = 24
OpaqueTy = 25
Field = 26
LifetimeParam = 27
GlobalAsm = 28
Impl = 29
Closure = 30
Local = 31
Other = 255
Implementations§
Trait Implementations§
impl Copy for DefKind
impl Eq for DefKind
impl StructuralPartialEq for DefKind
Auto Trait Implementations§
impl Forget for DefKind
impl Freeze for DefKind
impl Move for DefKind
impl RefUnwindSafe for DefKind
impl Send for DefKind
impl Sync for DefKind
impl Unpin for DefKind
impl UnsafeUnpin for DefKind
impl UnwindSafe for DefKind
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