pub enum IRPattern {
Literal(Value),
Variable(String),
Constructor {
name: String,
args: Vec<IRPattern>,
},
Wildcard,
}Expand description
IR patterns for matching
Variants§
Literal(Value)
Match a literal value
Variable(String)
Bind to a variable
Constructor
Constructor pattern
Wildcard
Wildcard pattern
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IRPattern
impl RefUnwindSafe for IRPattern
impl Send for IRPattern
impl Sync for IRPattern
impl Unpin for IRPattern
impl UnwindSafe for IRPattern
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