pub struct Then<C1, C2> { /* private fields */ }Expand description
Trait Implementations§
source§impl<C1: BytePattern, C2: BytePattern> BytePattern for Then<C1, C2>
impl<C1: BytePattern, C2: BytePattern> BytePattern for Then<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
source§fn then<P>(self, next: P) -> Then<Self, P>where
Self: Sized,
fn then<P>(self, next: P) -> Then<Self, P>where
Self: Sized,
Expreses a sequence of patterns Read more
impl<C1: Copy, C2: Copy> Copy for Then<C1, C2>
Auto Trait Implementations§
impl<C1, C2> RefUnwindSafe for Then<C1, C2>where
C1: RefUnwindSafe,
C2: RefUnwindSafe,
impl<C1, C2> Send for Then<C1, C2>
impl<C1, C2> Sync for Then<C1, C2>
impl<C1, C2> Unpin for Then<C1, C2>
impl<C1, C2> UnwindSafe for Then<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