pub enum PatternExpr<'input> {
Named(Ident<'input>, Expr<'input>),
Literal(Expr<'input>),
Evaluated(Expr<'input>),
}
Expand description
A pattern expression to match.
Variants§
Trait Implementations§
Source§impl<'input> Clone for PatternExpr<'input>
impl<'input> Clone for PatternExpr<'input>
Source§fn clone(&self) -> PatternExpr<'input>
fn clone(&self) -> PatternExpr<'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 PatternExpr<'input>
impl<'input> Debug for PatternExpr<'input>
Source§impl<'input> PartialEq for PatternExpr<'input>
impl<'input> PartialEq for PatternExpr<'input>
impl<'input> StructuralPartialEq for PatternExpr<'input>
Auto Trait Implementations§
impl<'input> Freeze for PatternExpr<'input>
impl<'input> RefUnwindSafe for PatternExpr<'input>
impl<'input> Send for PatternExpr<'input>
impl<'input> Sync for PatternExpr<'input>
impl<'input> Unpin for PatternExpr<'input>
impl<'input> UnwindSafe for PatternExpr<'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