Struct const_format::wrapper_types::NotAsciiError
source · pub struct NotAsciiError {
pub invalid_from: usize,
}
Available on crate feature
fmt
only.Expand description
Error from AsciiStr
constructor, caused by a byte not being valid ascii.
Fields§
§invalid_from: usize
The first non-ascii byte in the byte slice.
Trait Implementations§
source§impl Clone for NotAsciiError
impl Clone for NotAsciiError
source§fn clone(&self) -> NotAsciiError
fn clone(&self) -> NotAsciiError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NotAsciiError
impl Debug for NotAsciiError
source§impl Display for NotAsciiError
impl Display for NotAsciiError
source§impl PartialEq<NotAsciiError> for NotAsciiError
impl PartialEq<NotAsciiError> for NotAsciiError
source§fn eq(&self, other: &NotAsciiError) -> bool
fn eq(&self, other: &NotAsciiError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NotAsciiError
impl StructuralPartialEq for NotAsciiError
Auto Trait Implementations§
impl RefUnwindSafe for NotAsciiError
impl Send for NotAsciiError
impl Sync for NotAsciiError
impl Unpin for NotAsciiError
impl UnwindSafe for NotAsciiError
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