pub enum WorldItem<'a> {
Use(Use<'a>),
Type(ItemTypeDecl<'a>),
Import(WorldImport<'a>),
Export(WorldExport<'a>),
Include(WorldInclude<'a>),
}
Expand description
Represents a world item in the AST.
Variants§
Use(Use<'a>)
The item is a use.
Type(ItemTypeDecl<'a>)
The item is a type declaration.
Import(WorldImport<'a>)
The item is a world export.
Export(WorldExport<'a>)
The item is a world export.
Include(WorldInclude<'a>)
The item is a world include.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WorldItem<'a>
impl<'a> RefUnwindSafe for WorldItem<'a>
impl<'a> Send for WorldItem<'a>
impl<'a> Sync for WorldItem<'a>
impl<'a> Unpin for WorldItem<'a>
impl<'a> UnwindSafe for WorldItem<'a>
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