[−]Struct html5ever::tendril::fmt::Bytes
Marker type for uninterpreted bytes.
Validation will never fail for this format.
Trait Implementations
impl Clone for Bytes
fn clone(&self) -> Bytes
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Format for Bytes
fn validate(&[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
Check whether the buffer is valid for this format. Read more
fn validate_subseq(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
unsafe fn fixup(_lhs: &[u8], _rhs: &[u8]) -> Fixup
Compute any fixup needed when concatenating buffers. Read more
impl Default for Bytes
impl SliceExt<Bytes> for [u8]
fn to_tendril(&self) -> Tendril<F, NonAtomic>
Make a Tendril
from this slice.
impl SliceFormat for Bytes
impl Copy for Bytes
impl<Sink, A> TendrilSink<Bytes, A> for Utf8LossyDecoder<Sink, A> where
A: Atomicity,
Sink: TendrilSink<UTF8, A>,
A: Atomicity,
Sink: TendrilSink<UTF8, A>,
fn process(&mut self, t: Tendril<Bytes, A>)
fn error(&mut self, desc: Cow<'static, str>)
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 one<T>(self, t: T) -> Self::Output where
T: Into<Tendril<F, A>>,
T: Into<Tendril<F, A>>,
Process one tendril and finish.
fn from_iter<I>(self, i: I) -> Self::Output where
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
Consume an iterator of tendrils, processing each item, then finish.
fn read_from<R>(self, r: &mut R) -> Result<Self::Output, Error> where
F: SliceFormat<Slice = [u8]>,
R: Read,
F: SliceFormat<Slice = [u8]>,
R: Read,
Read from the given stream of bytes until exhaustion and process incrementally, then finish. Return Err
at the first I/O error. Read more
fn from_file<P>(self, path: P) -> Result<Self::Output, Error> where
F: SliceFormat<Slice = [u8]>,
P: AsRef<Path>,
F: SliceFormat<Slice = [u8]>,
P: AsRef<Path>,
Read from the file at the given path and process incrementally, then finish. Return Err
at the first I/O error. Read more
impl Debug for Bytes
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,