pub struct ByteSlice<'p>(/* private fields */);Expand description
See bytes
Trait Implementations§
Source§impl Pattern for ByteSlice<'_>
impl Pattern for ByteSlice<'_>
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<'p> Copy for ByteSlice<'p>
Auto Trait Implementations§
impl<'p> Freeze for ByteSlice<'p>
impl<'p> RefUnwindSafe for ByteSlice<'p>
impl<'p> Send for ByteSlice<'p>
impl<'p> Sync for ByteSlice<'p>
impl<'p> Unpin for ByteSlice<'p>
impl<'p> UnwindSafe for ByteSlice<'p>
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