pub struct Bytes;
Expand description
Marker type for uninterpreted bytes.
Validation will never fail for this format.
Trait Implementations
sourceimpl Format for Bytes
impl Format for Bytes
sourcefn validate_prefix(buf: &[u8]) -> bool
fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
sourcefn validate_suffix(buf: &[u8]) -> bool
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
sourceimpl<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,
sourcefn one<T>(self, t: T) -> Self::Output where
Self: Sized,
T: Into<Tendril<F, A>>,
fn one<T>(self, t: T) -> Self::Output where
Self: Sized,
T: Into<Tendril<F, A>>,
Process one tendril and finish.
sourcefn from_iter<I>(self, i: I) -> Self::Output where
Self: Sized,
I: IntoIterator,
I::Item: Into<Tendril<F, A>>,
fn from_iter<I>(self, i: I) -> Self::Output where
Self: Sized,
I: IntoIterator,
I::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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more