pub enum Pattern<S> {
Var(S),
Arr(Vec<Self>),
Obj(Vec<(Term<S>, Self)>),
}Expand description
Variable-binding pattern, such as in .[] as [$x, {$y, (f): $z}]
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Pattern<S>where
S: Freeze,
impl<S> RefUnwindSafe for Pattern<S>where
S: RefUnwindSafe,
impl<S> Send for Pattern<S>where
S: Send,
impl<S> Sync for Pattern<S>where
S: Sync,
impl<S> Unpin for Pattern<S>where
S: Unpin,
impl<S> UnwindSafe for Pattern<S>where
S: UnwindSafe,
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