pub enum PatKind {
Var(PatIdent),
App(QualifiedIdent, Vec<Box<Pat>>),
U60(u64),
U120(u128),
F60(u64),
Pair(Box<Pat>, Box<Pat>),
List(Vec<Pat>),
Str(String),
Char(char),
Hole,
}
Variants§
Var(PatIdent)
Name of a variable
App(QualifiedIdent, Vec<Box<Pat>>)
Application of a constructor
U60(u64)
60 bit unsigned integer
U120(u128)
120 bit unsigned integer
F60(u64)
60 bit floating point number
Pair(Box<Pat>, Box<Pat>)
Pair
List(Vec<Pat>)
List
Str(String)
Str
Char(char)
Hole
Wildcard
Trait Implementations§
impl Eq for PatKind
impl StructuralPartialEq for PatKind
Auto Trait Implementations§
impl Freeze for PatKind
impl RefUnwindSafe for PatKind
impl Send for PatKind
impl Sync for PatKind
impl Unpin for PatKind
impl UnwindSafe for PatKind
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