Struct AnyDelimited
pub struct AnyDelimited<'a> { /* private fields */ }Available on crate feature
io only.Expand description
A generic delimiter that uses any sequence of bytes as a delimiter.
Implementations§
§impl<'a> AnyDelimited<'a>
impl<'a> AnyDelimited<'a>
pub fn new(bytes: &'a [u8]) -> AnyDelimited<'a>
pub fn new(bytes: &'a [u8]) -> AnyDelimited<'a>
Creates a new AnyDelimited with the specified delimiter bytes.
Trait Implementations§
§impl<'a> Clone for AnyDelimited<'a>
impl<'a> Clone for AnyDelimited<'a>
§fn clone(&self) -> AnyDelimited<'a>
fn clone(&self) -> AnyDelimited<'a>
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 more§impl<'a> Debug for AnyDelimited<'a>
impl<'a> Debug for AnyDelimited<'a>
§impl Framer for AnyDelimited<'_>
impl Framer for AnyDelimited<'_>
§impl<'a> Hash for AnyDelimited<'a>
impl<'a> Hash for AnyDelimited<'a>
§impl<'a> Ord for AnyDelimited<'a>
impl<'a> Ord for AnyDelimited<'a>
§fn cmp(&self, other: &AnyDelimited<'a>) -> Ordering
fn cmp(&self, other: &AnyDelimited<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl<'a> PartialEq for AnyDelimited<'a>
impl<'a> PartialEq for AnyDelimited<'a>
§impl<'a> PartialOrd for AnyDelimited<'a>
impl<'a> PartialOrd for AnyDelimited<'a>
impl<'a> Copy for AnyDelimited<'a>
impl<'a> Eq for AnyDelimited<'a>
impl<'a> StructuralPartialEq for AnyDelimited<'a>
Auto Trait Implementations§
impl<'a> Freeze for AnyDelimited<'a>
impl<'a> RefUnwindSafe for AnyDelimited<'a>
impl<'a> Send for AnyDelimited<'a>
impl<'a> Sync for AnyDelimited<'a>
impl<'a> Unpin for AnyDelimited<'a>
impl<'a> UnwindSafe for AnyDelimited<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more