pub enum DelimiterResult {
Found {
pos: usize,
byte: u8,
},
NotFound,
}Expand description
Result of a multi-delimiter scan over a byte slice.
Variants§
Found
A delimiter was found at the given position.
Fields
NotFound
No delimiter was found in the slice.
Implementations§
Source§impl DelimiterResult
impl DelimiterResult
Sourcepub fn offset_by(self, offset: usize) -> DelimiterResult
pub fn offset_by(self, offset: usize) -> DelimiterResult
Shift the position by offset, used when falling back to scalar for
a tail slice.
Trait Implementations§
Source§impl Clone for DelimiterResult
impl Clone for DelimiterResult
Source§fn clone(&self) -> DelimiterResult
fn clone(&self) -> DelimiterResult
Returns a duplicate 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 Debug for DelimiterResult
impl Debug for DelimiterResult
Source§impl PartialEq for DelimiterResult
impl PartialEq for DelimiterResult
impl Copy for DelimiterResult
impl Eq for DelimiterResult
impl StructuralPartialEq for DelimiterResult
Auto Trait Implementations§
impl Freeze for DelimiterResult
impl RefUnwindSafe for DelimiterResult
impl Send for DelimiterResult
impl Sync for DelimiterResult
impl Unpin for DelimiterResult
impl UnsafeUnpin for DelimiterResult
impl UnwindSafe for DelimiterResult
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