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
§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.