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