pub struct NodePatternMatchClause {
pub pattern_expression: Box<WithMetaData<NodePattern>>,
pub statement_block: Option<WithMetaData<NodeStatementBlock>>,
}
Expand description
NodePatternMatchClause represents a pattern match clause node in the AST It contains a pattern expression and an optional statement block
Fields§
§pattern_expression: Box<WithMetaData<NodePattern>>
The pattern expression of the clause
statement_block: Option<WithMetaData<NodeStatementBlock>>
The statement block of the clause
Trait Implementations§
Source§impl AstVisitor for NodePatternMatchClause
impl AstVisitor for NodePatternMatchClause
fn visit( &self, emitter: &mut dyn AstConverting, ) -> Result<TraversalResult, String>
Source§impl Clone for NodePatternMatchClause
impl Clone for NodePatternMatchClause
Source§fn clone(&self) -> NodePatternMatchClause
fn clone(&self) -> NodePatternMatchClause
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 NodePatternMatchClause
impl Debug for NodePatternMatchClause
Source§impl PartialEq for NodePatternMatchClause
impl PartialEq for NodePatternMatchClause
Source§impl PartialOrd for NodePatternMatchClause
impl PartialOrd for NodePatternMatchClause
impl Eq for NodePatternMatchClause
impl StructuralPartialEq for NodePatternMatchClause
Auto Trait Implementations§
impl Freeze for NodePatternMatchClause
impl RefUnwindSafe for NodePatternMatchClause
impl Send for NodePatternMatchClause
impl Sync for NodePatternMatchClause
impl Unpin for NodePatternMatchClause
impl UnwindSafe for NodePatternMatchClause
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