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 LossyDecoder<Sink, A>
impl<Sink, A> TendrilSink<Bytes, A> for LossyDecoder<Sink, A>
§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 from_iter<I>(self, i: I) -> Self::Output
fn from_iter<I>(self, i: I) -> Self::Output
Consume an iterator of tendrils, processing each item, then finish.
source§impl<Sink, A> TendrilSink<Bytes, A> for Utf8LossyDecoder<Sink, A>
impl<Sink, A> TendrilSink<Bytes, A> for Utf8LossyDecoder<Sink, A>
§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 from_iter<I>(self, i: I) -> Self::Output
fn from_iter<I>(self, i: I) -> Self::Output
Consume an iterator of tendrils, processing each item, then finish.
impl Copy for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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