pub enum Definition {
StructDef(StructType),
EnumDef(LocalTypeIdentifier, SeqMap<LocalTypeIdentifier, EnumVariant>),
FunctionDef(LocalIdentifier, Function),
ImplDef(LocalTypeIdentifier, SeqMap<IdentifierName, Function>),
TypeAlias(LocalTypeIdentifier, Type),
Import(Import),
Comment(String),
}
Variants§
StructDef(StructType)
EnumDef(LocalTypeIdentifier, SeqMap<LocalTypeIdentifier, EnumVariant>)
FunctionDef(LocalIdentifier, Function)
ImplDef(LocalTypeIdentifier, SeqMap<IdentifierName, Function>)
TypeAlias(LocalTypeIdentifier, Type)
Import(Import)
Comment(String)
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
Returns a copy 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 moreSource§impl Debug for Definition
impl Debug for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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