pub struct Composition<P1, P2> { /* private fields */ }
Expand description
See Pattern::and
Trait Implementations§
Source§impl<P1: Clone, P2: Clone> Clone for Composition<P1, P2>
impl<P1: Clone, P2: Clone> Clone for Composition<P1, P2>
Source§fn clone(&self) -> Composition<P1, P2>
fn clone(&self) -> Composition<P1, P2>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P1, P2> Pattern for Composition<P1, P2>
impl<P1, P2> Pattern for Composition<P1, P2>
Source§fn eval(&self, input: &[u8]) -> Option<usize>
fn eval(&self, input: &[u8]) -> Option<usize>
Evaluates the pattern against a slice of bytes.
If the pattern matches, the length of matching bytes should be returned.
Otherwise,
None
should be returned. Read moreSource§fn and<P>(self, other: P) -> Composition<Self, P>
fn and<P>(self, other: P) -> Composition<Self, P>
impl<P1: Copy, P2: Copy> Copy for Composition<P1, P2>
Auto Trait Implementations§
impl<P1, P2> Freeze for Composition<P1, P2>
impl<P1, P2> RefUnwindSafe for Composition<P1, P2>where
P1: RefUnwindSafe,
P2: RefUnwindSafe,
impl<P1, P2> Send for Composition<P1, P2>
impl<P1, P2> Sync for Composition<P1, P2>
impl<P1, P2> Unpin for Composition<P1, P2>
impl<P1, P2> UnwindSafe for Composition<P1, P2>where
P1: UnwindSafe,
P2: 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