Enum scilla_parser::ast::nodes::NodeTypeAlternativeClause
source · 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 PartialEq for NodeTypeAlternativeClause
impl PartialEq for NodeTypeAlternativeClause
source§fn eq(&self, other: &NodeTypeAlternativeClause) -> bool
fn eq(&self, other: &NodeTypeAlternativeClause) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodeTypeAlternativeClause
impl PartialOrd for NodeTypeAlternativeClause
source§fn partial_cmp(&self, other: &NodeTypeAlternativeClause) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeTypeAlternativeClause) -> 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 NodeTypeAlternativeClause
impl StructuralEq for NodeTypeAlternativeClause
impl StructuralPartialEq for NodeTypeAlternativeClause
Auto Trait Implementations§
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