pub struct Not<T>(/* private fields */);
Expand description
A matcher that matches if the inner matcher does not match.
Implementations§
Trait Implementations§
Source§impl<State, Request, T> Matcher<State, Request> for Not<T>where
T: Matcher<State, Request>,
impl<State, Request, T> Matcher<State, Request> for Not<T>where
T: Matcher<State, Request>,
Source§fn matches(
&self,
ext: Option<&mut Extensions>,
ctx: &Context<State>,
req: &Request,
) -> bool
fn matches( &self, ext: Option<&mut Extensions>, ctx: &Context<State>, req: &Request, ) -> bool
returns true on a match, false otherwise Read more
Source§fn or<M>(self, other: M) -> impl Matcher<State, Request>
fn or<M>(self, other: M) -> impl Matcher<State, Request>
Provide an alternative matcher to match if the current one does not match.
Auto Trait Implementations§
impl<T> Freeze for Not<T>where
T: Freeze,
impl<T> RefUnwindSafe for Not<T>where
T: RefUnwindSafe,
impl<T> Send for Not<T>where
T: Send,
impl<T> Sync for Not<T>where
T: Sync,
impl<T> Unpin for Not<T>where
T: Unpin,
impl<T> UnwindSafe for Not<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