pub struct Not<P> { /* private fields */ }Expand description
See not
Trait Implementations§
source§impl<P> Pattern for Not<P>where
P: Pattern,
impl<P> Pattern for Not<P>where
P: Pattern,
source§fn test<'i>(&self, input: &'i [u8]) -> Option<(&'i [u8], &'i [u8])>
fn test<'i>(&self, input: &'i [u8]) -> Option<(&'i [u8], &'i [u8])>
Tests the pattern against the input slice. If the pattern matches, the matching part is
returned along with what is left of the input. Returns
None if the pattern does not matchsource§fn or<P>(self, other: P) -> Or<Self, P>where
Self: Sized,
fn or<P>(self, other: P) -> Or<Self, P>where
Self: Sized,
Expresses an alternate pattern. Read more
impl<P: Copy> Copy for Not<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for Not<P>where
P: RefUnwindSafe,
impl<P> Send for Not<P>where
P: Send,
impl<P> Sync for Not<P>where
P: Sync,
impl<P> Unpin for Not<P>where
P: Unpin,
impl<P> UnwindSafe for Not<P>where
P: 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