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>
impl<Sink, A> TendrilSink<Bytes, A> for Utf8LossyDecoder<Sink, A>
Source§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