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 SliceFormat for UTF8
impl SliceFormat for UTF8
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 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.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more