Struct scilla_parser::ast::nodes::NodePatternMatchExpressionClause
source · pub struct NodePatternMatchExpressionClause {
pub pattern: WithMetaData<NodePattern>,
pub expression: WithMetaData<NodeFullExpression>,
}Expand description
NodePatternMatchExpressionClause represents a pattern match expression clause node in the AST It contains a pattern and an expression
Fields§
§pattern: WithMetaData<NodePattern>The pattern of the clause
expression: WithMetaData<NodeFullExpression>The expression of the clause
Trait Implementations§
source§impl AstVisitor for NodePatternMatchExpressionClause
impl AstVisitor for NodePatternMatchExpressionClause
fn visit( &self, emitter: &mut dyn AstConverting ) -> Result<TraversalResult, String>
source§impl Clone for NodePatternMatchExpressionClause
impl Clone for NodePatternMatchExpressionClause
source§fn clone(&self) -> NodePatternMatchExpressionClause
fn clone(&self) -> NodePatternMatchExpressionClause
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 PartialEq for NodePatternMatchExpressionClause
impl PartialEq for NodePatternMatchExpressionClause
source§fn eq(&self, other: &NodePatternMatchExpressionClause) -> bool
fn eq(&self, other: &NodePatternMatchExpressionClause) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for NodePatternMatchExpressionClause
impl PartialOrd for NodePatternMatchExpressionClause
source§fn partial_cmp(
&self,
other: &NodePatternMatchExpressionClause
) -> Option<Ordering>
fn partial_cmp( &self, other: &NodePatternMatchExpressionClause ) -> 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 NodePatternMatchExpressionClause
impl StructuralEq for NodePatternMatchExpressionClause
impl StructuralPartialEq for NodePatternMatchExpressionClause
Auto Trait Implementations§
impl RefUnwindSafe for NodePatternMatchExpressionClause
impl Send for NodePatternMatchExpressionClause
impl Sync for NodePatternMatchExpressionClause
impl Unpin for NodePatternMatchExpressionClause
impl UnwindSafe for NodePatternMatchExpressionClause
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