pub struct ASCII;
Expand description
Marker type for ASCII text.
Trait Implementations§
source§impl<'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.
source§unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a> ⓘ
unsafe fn char_indices(buf: &'a [u8]) -> SingleByteCharIndices<'a> ⓘ
Iterate over the characters of the string and their byte
indices. Read more
source§impl Format for ASCII
impl Format for ASCII
source§fn validate_prefix(_: &[u8]) -> bool
fn validate_prefix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
source§fn 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 Freeze for ASCII
impl RefUnwindSafe for ASCII
impl Send for ASCII
impl Sync for ASCII
impl Unpin for ASCII
impl UnwindSafe for ASCII
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)