#[non_exhaustive]pub struct Ascii;Expand description
The ASCII encoding.
Trait Implementations§
source§impl Encoding for Ascii
impl Encoding for Ascii
source§fn validate(bytes: &[u8]) -> Result<(), ValidateError>
fn validate(bytes: &[u8]) -> Result<(), ValidateError>
Given a byte slice, determine whether it is valid for the current encoding.
impl NullTerminable 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