pub struct WorldDecl<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub items: Vec<WorldItem<'a>>,
}
Expand description
Represents a world declaration in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The doc comments for the world.
id: Ident<'a>
The identifier of the world.
items: Vec<WorldItem<'a>>
The items of the world.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WorldDecl<'a>
impl<'a> RefUnwindSafe for WorldDecl<'a>
impl<'a> Send for WorldDecl<'a>
impl<'a> Sync for WorldDecl<'a>
impl<'a> Unpin for WorldDecl<'a>
impl<'a> UnwindSafe for WorldDecl<'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