pub struct And<C1, C2> { /* private fields */ }Expand description
See Pattern::and
Trait Implementations§
source§impl<C1: Pattern, C2: Pattern> Pattern for And<C1, C2>
impl<C1: Pattern, C2: Pattern> Pattern for And<C1, C2>
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<C1: Copy, C2: Copy> Copy for And<C1, C2>
Auto Trait Implementations§
impl<C1, C2> RefUnwindSafe for And<C1, C2>where
C1: RefUnwindSafe,
C2: RefUnwindSafe,
impl<C1, C2> Send for And<C1, C2>
impl<C1, C2> Sync for And<C1, C2>
impl<C1, C2> Unpin for And<C1, C2>
impl<C1, C2> UnwindSafe for And<C1, C2>where
C1: UnwindSafe,
C2: 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