pub enum DefinitionKind {
AliasDef(AliasType),
NamedStructDef(NamedStructDef),
EnumDef(LocalTypeIdentifierWithOptionalTypeVariables, Vec<EnumVariantType>),
FunctionDef(Function),
ImplDef(LocalTypeIdentifierWithOptionalTypeVariables, Vec<Function>),
Mod(Mod),
Use(Use),
Constant(ConstantInfo),
}Variants§
AliasDef(AliasType)
NamedStructDef(NamedStructDef)
EnumDef(LocalTypeIdentifierWithOptionalTypeVariables, Vec<EnumVariantType>)
FunctionDef(Function)
ImplDef(LocalTypeIdentifierWithOptionalTypeVariables, Vec<Function>)
Mod(Mod)
Use(Use)
Constant(ConstantInfo)
Trait Implementations§
Source§impl Clone for DefinitionKind
impl Clone for DefinitionKind
Source§fn clone(&self) -> DefinitionKind
fn clone(&self) -> DefinitionKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DefinitionKind
impl RefUnwindSafe for DefinitionKind
impl Send for DefinitionKind
impl Sync for DefinitionKind
impl Unpin for DefinitionKind
impl UnwindSafe for DefinitionKind
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