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