pub enum SurfacePattern {
Var(String, Span),
Lit(String, Span),
App {
op: String,
prefix: Option<(String, Span)>,
children: Vec<SurfacePatChild>,
suffix: Option<(String, Span)>,
span: Span,
},
}Expand description
Uniform pattern — (op children...) with optional ..rest and :mult.
Variants§
Var(String, Span)
Bare identifier = pattern variable.
Lit(String, Span)
Literal constant.
App
(op [..pre] child1 child2 ... [..suf]).
Implementations§
Trait Implementations§
Source§impl Clone for SurfacePattern
impl Clone for SurfacePattern
Source§impl Debug for SurfacePattern
impl Debug for SurfacePattern
impl Eq for SurfacePattern
Source§impl PartialEq for SurfacePattern
impl PartialEq for SurfacePattern
impl StructuralPartialEq for SurfacePattern
Auto Trait Implementations§
impl Freeze for SurfacePattern
impl RefUnwindSafe for SurfacePattern
impl Send for SurfacePattern
impl Sync for SurfacePattern
impl Unpin for SurfacePattern
impl UnsafeUnpin for SurfacePattern
impl UnwindSafe for SurfacePattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.