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
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for NodePatternMatchExpressionClause
impl PartialOrd for NodePatternMatchExpressionClause
impl Eq for NodePatternMatchExpressionClause
impl StructuralPartialEq for NodePatternMatchExpressionClause
Auto Trait Implementations§
impl Freeze for NodePatternMatchExpressionClause
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