pub struct Bytes;
Expand description
Marker type for uninterpreted bytes.
Validation will never fail for this format.
Trait Implementations§
source§impl Format for Bytes
impl Format for Bytes
source§fn validate_prefix(buf: &[u8]) -> bool
fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
source§fn validate_suffix(buf: &[u8]) -> bool
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
source§impl SliceExt<Bytes> for [u8]
impl SliceExt<Bytes> for [u8]
source§fn to_tendril(&self) -> Tendril<F> ⓘ
fn to_tendril(&self) -> Tendril<F> ⓘ
Make a
Tendril
from this slice.source§impl<Sink, A> TendrilSink<Bytes, A> for Utf8LossyDecoder<Sink, A>where
Sink: TendrilSink<UTF8, A>,
A: Atomicity,
impl<Sink, A> TendrilSink<Bytes, A> for Utf8LossyDecoder<Sink, A>where
Sink: TendrilSink<UTF8, A>,
A: Atomicity,
§type Output = <Sink as TendrilSink<UTF8, A>>::Output
type Output = <Sink as TendrilSink<UTF8, A>>::Output
What the overall result of processing is.
source§fn one<T>(self, t: T) -> Self::Outputwhere
Self: Sized,
T: Into<Tendril<F, A>>,
fn one<T>(self, t: T) -> Self::Outputwhere
Self: Sized,
T: Into<Tendril<F, A>>,
Process one tendril and finish.
source§fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
I::Item: Into<Tendril<F, A>>,
fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
I::Item: Into<Tendril<F, A>>,
Consume an iterator of tendrils, processing each item, then finish.