pub struct Repetition<P> { /* private fields */ }Expand description
Trait Implementations§
Source§impl<P: Clone> Clone for Repetition<P>
impl<P: Clone> Clone for Repetition<P>
Source§fn clone(&self) -> Repetition<P>
fn clone(&self) -> Repetition<P>
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<P: Debug> Debug for Repetition<P>
impl<P: Debug> Debug for Repetition<P>
Source§impl<P> Pattern for Repetition<P>where
P: Pattern,
impl<P> Pattern for Repetition<P>where
P: Pattern,
Source§fn eval<'i>(&self, input: &[u8]) -> Option<usize>
fn eval<'i>(&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<P: Copy> Copy for Repetition<P>
Auto Trait Implementations§
impl<P> Freeze for Repetition<P>where
P: Freeze,
impl<P> RefUnwindSafe for Repetition<P>where
P: RefUnwindSafe,
impl<P> Send for Repetition<P>where
P: Send,
impl<P> Sync for Repetition<P>where
P: Sync,
impl<P> Unpin for Repetition<P>where
P: Unpin,
impl<P> UnwindSafe for Repetition<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