pub struct UTF8;
Expand description
Marker type for UTF-8 text.
Trait Implementations§
Source§impl<'a> CharFormat<'a> for UTF8
impl<'a> CharFormat<'a> for UTF8
Source§type Iter = CharIndices<'a>
type Iter = CharIndices<'a>
Iterator for characters and their byte indices.
Source§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
Source§impl Format for UTF8
impl Format for UTF8
Source§fn validate_prefix(buf: &[u8]) -> bool
fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
Source§fn validate_suffix(buf: &[u8]) -> bool
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
Source§impl SliceExt<UTF8> for str
impl SliceExt<UTF8> for str
Source§fn to_tendril(&self) -> Tendril<F>
fn to_tendril(&self) -> Tendril<F>
Make a
Tendril
from this slice.Source§impl<Sink: TreeSink> TendrilSink<UTF8> for Parser<Sink>
impl<Sink: TreeSink> TendrilSink<UTF8> for Parser<Sink>
Source§fn process(&mut self, t: StrTendril)
fn process(&mut self, t: StrTendril)
Process this tendril.
Source§fn from_iter<I>(self, i: I) -> Self::Output
fn from_iter<I>(self, i: I) -> Self::Output
Consume an iterator of tendrils, processing each item, then finish.
impl Copy for UTF8
Auto Trait Implementations§
impl Freeze for UTF8
impl RefUnwindSafe for UTF8
impl Send for UTF8
impl Sync for UTF8
impl Unpin for UTF8
impl UnwindSafe for UTF8
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more