pub enum NodeTypeAlternativeClause {
ClauseType(WithMetaData<NodeTypeNameIdentifier>),
ClauseTypeWithArgs(WithMetaData<NodeTypeNameIdentifier>, Vec<WithMetaData<NodeTypeArgument>>),
}
Expand description
NodeTypeAlternativeClause represents an alternative clause node in the AST It can either be a ClauseType or a ClauseTypeWithArgs
Variants§
ClauseType(WithMetaData<NodeTypeNameIdentifier>)
Represents a clause type
Example: match x with | ClauseType => ...
ClauseTypeWithArgs(WithMetaData<NodeTypeNameIdentifier>, Vec<WithMetaData<NodeTypeArgument>>)
Represents a clause type with arguments
Example: match x with | ClauseType arg1 arg2 => ...
Trait Implementations§
Source§impl AstVisitor for NodeTypeAlternativeClause
impl AstVisitor for NodeTypeAlternativeClause
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodeTypeAlternativeClause
impl Clone for NodeTypeAlternativeClause
Source§fn clone(&self) -> NodeTypeAlternativeClause
fn clone(&self) -> NodeTypeAlternativeClause
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 NodeTypeAlternativeClause
impl Debug for NodeTypeAlternativeClause
Source§impl PartialOrd for NodeTypeAlternativeClause
impl PartialOrd for NodeTypeAlternativeClause
impl Eq for NodeTypeAlternativeClause
impl StructuralPartialEq for NodeTypeAlternativeClause
Auto Trait Implementations§
impl Freeze for NodeTypeAlternativeClause
impl RefUnwindSafe for NodeTypeAlternativeClause
impl Send for NodeTypeAlternativeClause
impl Sync for NodeTypeAlternativeClause
impl Unpin for NodeTypeAlternativeClause
impl UnwindSafe for NodeTypeAlternativeClause
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