pub struct Bytes;
Expand description
Marker type for uninterpreted bytes.
Validation will never fail for this format.
Trait Implementations
impl Format for Bytes
impl Format for Bytes
fn validate_prefix(buf: &[u8]) -> bool
fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_suffix(buf: &[u8]) -> bool
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_subseq(buf: &[u8]) -> bool
fn validate_subseq(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
impl SliceExt<Bytes> for [u8]
impl SliceExt<Bytes> for [u8]
fn to_tendril(&self) -> Tendril<F, NonAtomic> ⓘ
fn to_tendril(&self) -> Tendril<F, NonAtomic> ⓘ
Make a
Tendril
from this slice.impl SliceFormat for Bytes
impl SliceFormat for Bytes
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.
fn finish(self) -> <Sink as TendrilSink<UTF8, A>>::Output
fn finish(self) -> <Sink as TendrilSink<UTF8, A>>::Output
Indicates the end of the stream.
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.
fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
Consume an iterator of tendrils, processing each item, then finish.
impl Copy for Bytes
Auto Trait Implementations
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more