[]Struct html5ever::tendril::fmt::UTF8

pub struct UTF8;

Marker type for UTF-8 text.

Trait Implementations

impl Clone for UTF8

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl SubsetOf<WTF8> for UTF8

fn revalidate_subset(x: &[u8]) -> bool

Validate the other direction of conversion; check if this buffer from the superset format conforms to the subset format. Read more

impl SubsetOf<UTF8> for ASCII

fn revalidate_subset(x: &[u8]) -> bool

Validate the other direction of conversion; check if this buffer from the superset format conforms to the subset format. Read more

impl Format for UTF8

unsafe fn fixup(_lhs: &[u8], _rhs: &[u8]) -> Fixup

Compute any fixup needed when concatenating buffers. Read more

impl Default for UTF8

impl SliceExt<UTF8> for str

Important traits for Tendril<Bytes, A>
fn to_tendril(&self) -> Tendril<F, NonAtomic>

Make a Tendril from this slice.

impl SliceFormat for UTF8

type Slice = str

impl Copy for UTF8

impl<'a> CharFormat<'a> for UTF8

type Iter = CharIndices<'a>

Iterator for characters and their byte indices.

impl Debug for UTF8

impl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>[src]

type Output = Sink::Output

What the overall result of processing is.

fn one<T>(self, t: T) -> Self::Output where
    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>>, 

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

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>, 

Read from the file at the given path and process incrementally, then finish. Return Err at the first I/O error. Read more

Auto Trait Implementations

impl Send for UTF8

impl Sync for UTF8

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]