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