pub enum Pat {
Tup(Vec<Pat>),
ID(String),
Str(String),
StrList(Vec<String>),
Wild(Vec<Pat>),
Bind(String, Box<Pat>),
Rng(Range),
Rex(RegexEq),
}Variants§
Tup(Vec<Pat>)
ID(String)
Str(String)
StrList(Vec<String>)
Wild(Vec<Pat>)
Bind(String, Box<Pat>)
Rng(Range)
Rex(RegexEq)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Pat
Auto Trait Implementations§
impl !Freeze for Pat
impl !RefUnwindSafe for Pat
impl Send for Pat
impl Sync for Pat
impl Unpin for Pat
impl UnwindSafe for Pat
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