pub struct ASCII;
Expand description
Marker type for ASCII text.
Trait Implementations
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.
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
impl Format for ASCII
impl Format for ASCII
fn validate_prefix(_: &[u8]) -> bool
fn validate_prefix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_suffix(_: &[u8]) -> bool
fn validate_suffix(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
fn validate_subseq(_: &[u8]) -> bool
fn validate_subseq(_: &[u8]) -> bool
Check whether the buffer is valid for this format. Read more
impl SubsetOf<Latin1> for ASCII
impl SubsetOf<Latin1> for ASCII
fn revalidate_subset(x: &[u8]) -> bool
fn revalidate_subset(x: &[u8]) -> bool
Validate the other direction of conversion; check if
this buffer from the superset format conforms to the
subset format. Read more
impl SubsetOf<UTF8> for ASCII
impl SubsetOf<UTF8> for ASCII
fn revalidate_subset(x: &[u8]) -> bool
fn revalidate_subset(x: &[u8]) -> bool
Validate the other direction of conversion; check if
this buffer from the superset format conforms to the
subset 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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