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
Source§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