pub enum Item {
Function(Function),
Record(Record),
Type(TypeDecl),
Trait(TraitDecl),
Impl(ImplBlock),
Const(ConstDecl),
Import(Import),
Module(ModuleDecl),
Extern(ExternBlock),
}Expand description
Every kind of top-level item that can appear in a Nova file.
Variants§
Function(Function)
Record(Record)
Type(TypeDecl)
Trait(TraitDecl)
Impl(ImplBlock)
Const(ConstDecl)
Import(Import)
Module(ModuleDecl)
Extern(ExternBlock)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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