Enum semantic_analyzer::ast::MainStatement
source · pub enum MainStatement<'a> {
Import(ImportPath<'a>),
Constant(Constant<'a>),
Types(StructTypes<'a>),
Function(FunctionStatement<'a>),
}Variants§
Import(ImportPath<'a>)
Constant(Constant<'a>)
Types(StructTypes<'a>)
Function(FunctionStatement<'a>)
Trait Implementations§
source§impl<'a> Clone for MainStatement<'a>
impl<'a> Clone for MainStatement<'a>
source§fn clone(&self) -> MainStatement<'a>
fn clone(&self) -> MainStatement<'a>
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<'a> Debug for MainStatement<'a>
impl<'a> Debug for MainStatement<'a>
source§impl<'a> PartialEq<MainStatement<'a>> for MainStatement<'a>
impl<'a> PartialEq<MainStatement<'a>> for MainStatement<'a>
source§fn eq(&self, other: &MainStatement<'a>) -> bool
fn eq(&self, other: &MainStatement<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> StructuralPartialEq for MainStatement<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MainStatement<'a>
impl<'a> Send for MainStatement<'a>
impl<'a> Sync for MainStatement<'a>
impl<'a> Unpin for MainStatement<'a>
impl<'a> UnwindSafe for MainStatement<'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