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