pub enum ErasedPattern {
Wildcard,
Ctor(u32, Vec<ErasedPattern>),
Lit(u64),
Var(String),
}Expand description
A pattern in an erased match expression.
Variants§
Wildcard
Match any value (wildcard).
Ctor(u32, Vec<ErasedPattern>)
Match a specific constructor tag.
Lit(u64)
Match a specific integer literal.
Var(String)
Bind a variable.
Implementations§
Source§impl ErasedPattern
impl ErasedPattern
Trait Implementations§
Source§impl Clone for ErasedPattern
impl Clone for ErasedPattern
Source§fn clone(&self) -> ErasedPattern
fn clone(&self) -> ErasedPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErasedPattern
impl Debug for ErasedPattern
Source§impl PartialEq for ErasedPattern
impl PartialEq for ErasedPattern
impl Eq for ErasedPattern
impl StructuralPartialEq for ErasedPattern
Auto Trait Implementations§
impl Freeze for ErasedPattern
impl RefUnwindSafe for ErasedPattern
impl Send for ErasedPattern
impl Sync for ErasedPattern
impl Unpin for ErasedPattern
impl UnsafeUnpin for ErasedPattern
impl UnwindSafe for ErasedPattern
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