pub struct UTF8;
Expand description
Marker type for UTF-8 text.
Trait Implementations
sourceimpl<'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.
sourceunsafe 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
sourceimpl Format for UTF8
impl Format for UTF8
sourcefn validate_prefix(buf: &[u8]) -> bool
fn validate_prefix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
sourcefn validate_suffix(buf: &[u8]) -> bool
fn validate_suffix(buf: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
sourceimpl SliceFormat for UTF8
impl SliceFormat for UTF8
impl Copy for UTF8
Auto Trait Implementations
impl RefUnwindSafe for UTF8
impl Send for UTF8
impl Sync for UTF8
impl Unpin for UTF8
impl UnwindSafe for UTF8
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more