pub struct TypeMatcher<U: 'static> { /* private fields */ }Expand description
A concrete type matcher implementation.
TypeMatcher provides runtime type checking capabilities by storing and comparing TypeIds.
§Type Parameters
U- The type to match against
Implementations§
Trait Implementations§
Source§impl<T: 'static, U: 'static> TypePattern<T> for TypeMatcher<U>
impl<T: 'static, U: 'static> TypePattern<T> for TypeMatcher<U>
Auto Trait Implementations§
impl<U> Freeze for TypeMatcher<U>
impl<U> RefUnwindSafe for TypeMatcher<U>where
U: RefUnwindSafe,
impl<U> Send for TypeMatcher<U>where
U: Send,
impl<U> Sync for TypeMatcher<U>where
U: Sync,
impl<U> Unpin for TypeMatcher<U>where
U: Unpin,
impl<U> UnwindSafe for TypeMatcher<U>where
U: 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