pub struct VarPatternList<'input> {
pub loc: Loc,
pub pattern: Vec<PatternExpr<'input>>,
}
Expand description
A pattern to match in a variable.
Fields§
§loc: Loc
§pattern: Vec<PatternExpr<'input>>
Implementations§
Source§impl<'input> VarPatternList<'input>
impl<'input> VarPatternList<'input>
Sourcepub fn new(loc: Loc, pattern: Vec<PatternExpr<'input>>) -> Self
pub fn new(loc: Loc, pattern: Vec<PatternExpr<'input>>) -> Self
Creates a new variable pattern.
Trait Implementations§
Source§impl<'input> Clone for VarPatternList<'input>
impl<'input> Clone for VarPatternList<'input>
Source§fn clone(&self) -> VarPatternList<'input>
fn clone(&self) -> VarPatternList<'input>
Returns a duplicate 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<'input> Debug for VarPatternList<'input>
impl<'input> Debug for VarPatternList<'input>
Source§impl<'input> Locate for VarPatternList<'input>
impl<'input> Locate for VarPatternList<'input>
Source§impl<'input> PartialEq for VarPatternList<'input>
impl<'input> PartialEq for VarPatternList<'input>
impl<'input> StructuralPartialEq for VarPatternList<'input>
Auto Trait Implementations§
impl<'input> Freeze for VarPatternList<'input>
impl<'input> RefUnwindSafe for VarPatternList<'input>
impl<'input> Send for VarPatternList<'input>
impl<'input> Sync for VarPatternList<'input>
impl<'input> Unpin for VarPatternList<'input>
impl<'input> UnwindSafe for VarPatternList<'input>
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