[−]Struct html5ever::tendril::fmt::UTF8
Marker type for UTF-8 text.
Trait Implementations
impl<'a> CharFormat<'a> for UTF8
type Iter = CharIndices<'a>
Iterator for characters and their byte indices.
unsafe fn char_indices(buf: &'a [u8]) -> CharIndices<'a>
fn encode_char<F>(ch: char, cont: F) -> Result<(), ()> where
F: FnOnce(&[u8]),
F: FnOnce(&[u8]),
impl SliceFormat for UTF8
impl SubsetOf<UTF8> for ASCII
fn revalidate_subset(x: &[u8]) -> bool
impl SubsetOf<WTF8> for UTF8
fn revalidate_subset(x: &[u8]) -> bool
impl Format for UTF8
fn validate(buf: &[u8]) -> bool
fn validate_prefix(buf: &[u8]) -> bool
fn validate_suffix(buf: &[u8]) -> bool
fn validate_subseq(buf: &[u8]) -> bool
unsafe fn fixup(_lhs: &[u8], _rhs: &[u8]) -> Fixup
impl SliceExt<UTF8> for str
fn to_tendril(&self) -> Tendril<F, NonAtomic>
impl Clone for UTF8
fn clone(&self) -> UTF8
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UTF8
impl Default for UTF8
impl Copy for UTF8
impl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>
[src]
fn process(&mut self, t: StrTendril)
[src]
fn error(&mut self, desc: Cow<'static, str>)
[src]
type Output = Sink::Output
What the overall result of processing is.
fn finish(self) -> Self::Output
[src]
fn one<T>(self, t: T) -> Self::Output where
T: Into<Tendril<F, A>>,
T: Into<Tendril<F, A>>,
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>>,
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,
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>,
Auto Trait Implementations
impl Send for UTF8
impl Sync for UTF8
impl Unpin for UTF8
impl RefUnwindSafe for UTF8
impl UnwindSafe for UTF8
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,