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.
unsafe fn char_indices(buf: &'a [u8]) -> CharIndices<'a>
unsafe fn char_indices(buf: &'a [u8]) -> CharIndices<'a>
Iterate over the characters of the string and their byte
indices. Read more
impl Format for UTF8
impl Format for UTF8
fn validate_prefix(buf: &[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
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_subseq(buf: &[u8]) -> bool
fn validate_subseq(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
impl SliceExt<UTF8> for str
impl SliceExt<UTF8> for str
fn to_tendril(&self) -> Tendril<F, NonAtomic> ⓘ
fn to_tendril(&self) -> Tendril<F, NonAtomic> ⓘ
Make a
Tendril
from this slice.impl SliceFormat for UTF8
impl SliceFormat for UTF8
impl SubsetOf<UTF8> for ASCII
impl SubsetOf<UTF8> for ASCII
fn revalidate_subset(x: &[u8]) -> bool
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<WTF8> for UTF8
impl SubsetOf<WTF8> for UTF8
fn revalidate_subset(x: &[u8]) -> bool
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
sourceimpl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>
impl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>
sourcefn process(&mut self, t: StrTendril)
fn process(&mut self, t: StrTendril)
Process this tendril.
fn one<T>(self, t: T) -> Self::Outputwhere
Self: Sized,
T: Into<Tendril<F, A>>,
fn one<T>(self, t: T) -> Self::Outputwhere
Self: Sized,
T: Into<Tendril<F, A>>,
Process one tendril and finish.
fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
Consume an iterator of tendrils, processing each item, then finish.
impl Copy for UTF8
Auto Trait Implementations
impl RefUnwindSafe for UTF8
impl Send for UTF8
impl Sync for UTF8
impl Unpin for UTF8
impl UnwindSafe for UTF8
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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