pub enum Pattern {
Constructor(TypedIdent<Symbol>, Vec<TypedIdent<Symbol>>),
Record(Vec<(TypedIdent<Symbol>, Option<Symbol>)>),
Ident(TypedIdent<Symbol>),
Literal(Literal),
}
Variants
Constructor(TypedIdent<Symbol>, Vec<TypedIdent<Symbol>>)
Record(Vec<(TypedIdent<Symbol>, Option<Symbol>)>)
Ident(TypedIdent<Symbol>)
Literal(Literal)
Trait Implementations
impl StructuralPartialEq for Pattern
Auto Trait Implementations
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more