pub enum TypeStatement<'a> {
Interface(InterfaceDecl<'a>),
World(WorldDecl<'a>),
Type(TypeDecl<'a>),
}
Expand description
Represents a type statement in the AST.
Variants§
Interface(InterfaceDecl<'a>)
The statement is for an interface declaration.
World(WorldDecl<'a>)
The statement is for a world declaration.
Type(TypeDecl<'a>)
The statement is for a type declaration.
Trait Implementations§
Source§impl<'a> Clone for TypeStatement<'a>
impl<'a> Clone for TypeStatement<'a>
Source§fn clone(&self) -> TypeStatement<'a>
fn clone(&self) -> TypeStatement<'a>
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 moreSource§impl<'a> Debug for TypeStatement<'a>
impl<'a> Debug for TypeStatement<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeStatement<'a>
impl<'a> RefUnwindSafe for TypeStatement<'a>
impl<'a> Send for TypeStatement<'a>
impl<'a> Sync for TypeStatement<'a>
impl<'a> Unpin for TypeStatement<'a>
impl<'a> UnwindSafe for TypeStatement<'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