pub struct ASCII;
Expand description
Marker type for ASCII text.
Trait Implementations
sourceimpl<'a> CharFormat<'a> for ASCII
impl<'a> CharFormat<'a> for ASCII
type Iter = SingleByteCharIndices<'a>
type Iter = SingleByteCharIndices<'a>
Iterator for characters and their byte indices.
sourceunsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a>ⓘNotable traits for SingleByteCharIndices<'a>impl<'a> Iterator for SingleByteCharIndices<'a> type Item = (usize, char);
unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a>ⓘNotable traits for SingleByteCharIndices<'a>impl<'a> Iterator for SingleByteCharIndices<'a> type Item = (usize, char);
Iterate over the characters of the string and their byte indices. Read more
sourceimpl Format for ASCII
impl Format for ASCII
sourcefn validate_prefix(_: &[u8]) -> bool
fn validate_prefix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
sourcefn validate_suffix(_: &[u8]) -> bool
fn validate_suffix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
impl Copy for ASCII
Auto Trait Implementations
impl RefUnwindSafe for ASCII
impl Send for ASCII
impl Sync for ASCII
impl Unpin for ASCII
impl UnwindSafe for ASCII
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