Enum edlang_ast::ModuleStatement
source · pub enum ModuleStatement {
Function(Function),
Constant(Constant),
Struct(Struct),
StructImpl(StructImpl),
Module(Module),
}
Variants§
Trait Implementations§
source§impl Clone for ModuleStatement
impl Clone for ModuleStatement
source§fn clone(&self) -> ModuleStatement
fn clone(&self) -> ModuleStatement
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 Debug for ModuleStatement
impl Debug for ModuleStatement
source§impl Hash for ModuleStatement
impl Hash for ModuleStatement
source§impl Ord for ModuleStatement
impl Ord for ModuleStatement
source§fn cmp(&self, other: &ModuleStatement) -> Ordering
fn cmp(&self, other: &ModuleStatement) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ModuleStatement
impl PartialEq for ModuleStatement
source§fn eq(&self, other: &ModuleStatement) -> bool
fn eq(&self, other: &ModuleStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ModuleStatement
impl PartialOrd for ModuleStatement
source§fn partial_cmp(&self, other: &ModuleStatement) -> Option<Ordering>
fn partial_cmp(&self, other: &ModuleStatement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ModuleStatement
impl StructuralPartialEq for ModuleStatement
Auto Trait Implementations§
impl RefUnwindSafe for ModuleStatement
impl Send for ModuleStatement
impl Sync for ModuleStatement
impl Unpin for ModuleStatement
impl UnwindSafe for ModuleStatement
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