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 XmlParser<Sink>
impl<Sink: TreeSink> TendrilSink<UTF8> for XmlParser<Sink>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)