pub struct Pattern<T: Clone + PartialEq + Eq>(/* private fields */);Expand description
The main difference between Pattern and Matcher is the lack of the Any and Quantifier fragments. Patterns can always be promoted to Matchers, but not vice-versa.
Trait Implementations§
impl<T: Eq + Clone + PartialEq + Eq> Eq for Pattern<T>
impl<T: Clone + PartialEq + Eq> StructuralPartialEq for Pattern<T>
Auto Trait Implementations§
impl<T> Freeze for Pattern<T>
impl<T> RefUnwindSafe for Pattern<T>where
T: RefUnwindSafe,
impl<T> Send for Pattern<T>where
T: Send,
impl<T> Sync for Pattern<T>where
T: Sync,
impl<T> Unpin for Pattern<T>
impl<T> UnwindSafe for Pattern<T>where
T: UnwindSafe,
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