Struct valkyrie_ast::PatternBranch
source · pub struct PatternBranch {
pub condition: PatternCondition,
pub continuation: StatementBlock,
pub span: Range<u32>,
}Expand description
A pattern match branch
Fields§
§condition: PatternConditionThe condition of the branch
continuation: StatementBlockThe continuation of the branch
span: Range<u32>The range of the node
Trait Implementations§
source§impl Clone for PatternBranch
impl Clone for PatternBranch
source§fn clone(&self) -> PatternBranch
fn clone(&self) -> PatternBranch
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 PatternBranch
impl Debug for PatternBranch
source§impl Hash for PatternBranch
impl Hash for PatternBranch
source§impl PartialEq for PatternBranch
impl PartialEq for PatternBranch
source§fn eq(&self, other: &PatternBranch) -> bool
fn eq(&self, other: &PatternBranch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PatternBranch
impl StructuralPartialEq for PatternBranch
Auto Trait Implementations§
impl RefUnwindSafe for PatternBranch
impl Send for PatternBranch
impl Sync for PatternBranch
impl Unpin for PatternBranch
impl UnwindSafe for PatternBranch
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