pub enum IrPattern {
Wildcard,
Literal(String),
Constructor {
name: String,
args: Vec<String>,
},
Tuple(Vec<String>),
Or(Box<IrPattern>, Box<IrPattern>),
}Expand description
Pattern for match expressions
Variants§
Trait Implementations§
impl Eq for IrPattern
impl StructuralPartialEq for IrPattern
Auto Trait Implementations§
impl Freeze for IrPattern
impl RefUnwindSafe for IrPattern
impl Send for IrPattern
impl Sync for IrPattern
impl Unpin for IrPattern
impl UnsafeUnpin 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