Struct xml5ever::tendril::fmt::UTF8 [−]
pub struct UTF8;
Expand description
Marker type for UTF-8 text.
Trait Implementations
impl<'a> CharFormat<'a> for UTF8
impl<'a> CharFormat<'a> for UTF8
type Iter = CharIndices<'a>
type Iter = CharIndices<'a>
Iterator for characters and their byte indices.
pub unsafe fn char_indices(buf: &'a [u8]) -> CharIndices<'a>
pub unsafe fn char_indices(buf: &'a [u8]) -> CharIndices<'a>
Iterate over the characters of the string and their byte indices. Read more
pub fn validate_prefix(buf: &[u8]) -> bool
pub fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
pub fn validate_suffix(buf: &[u8]) -> bool
pub fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
impl SliceFormat for UTF8
impl SliceFormat for UTF8
Process this tendril.
fn from_iter<I>(self, i: I) -> Self::Output where
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
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.
Read from the given stream of bytes until exhaustion and process incrementally,
then finish. Return Err
at the first I/O error. Read more
Auto Trait Implementations
impl RefUnwindSafe for UTF8
impl UnwindSafe for UTF8
Blanket Implementations
Mutably borrows from an owned value. Read more