pub enum NodeModule {
Toplevel,
Unnamed,
Symbols,
}Expand description
Where a node type is located.
We have three modules to organize things and remove some name conflicts. Specifically, we have
unnamed and symbols are separate from the top-level so node named-ness is apparent and we
may have nodes like _if (becomes If) and "if", and unnamed is separate from symbols so
unnamed nodes derived from symbols are apparent and because we may have nodes like "+" and
"add".
Variants§
Trait Implementations§
Source§impl Clone for NodeModule
impl Clone for NodeModule
Source§fn clone(&self) -> NodeModule
fn clone(&self) -> NodeModule
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 Debug for NodeModule
impl Debug for NodeModule
Source§impl Enum for NodeModule
impl Enum for NodeModule
Source§type Array<__EnumMapInternalV> = [__EnumMapInternalV; 3]
type Array<__EnumMapInternalV> = [__EnumMapInternalV; 3]
Representation of an enum. Read more
Source§fn from_usize(value: usize) -> Self
fn from_usize(value: usize) -> Self
Takes an usize, and returns an element matching
into_usize function.Source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns an unique identifier for a value within range of
0..Array::LENGTH.Source§impl Hash for NodeModule
impl Hash for NodeModule
Source§impl Ord for NodeModule
impl Ord for NodeModule
Source§fn cmp(&self, other: &NodeModule) -> Ordering
fn cmp(&self, other: &NodeModule) -> 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 NodeModule
impl PartialEq for NodeModule
Source§impl PartialOrd for NodeModule
impl PartialOrd for NodeModule
impl Copy for NodeModule
impl Eq for NodeModule
impl StructuralPartialEq for NodeModule
Auto Trait Implementations§
impl Freeze for NodeModule
impl RefUnwindSafe for NodeModule
impl Send for NodeModule
impl Sync for NodeModule
impl Unpin for NodeModule
impl UnwindSafe for NodeModule
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