pub struct NotAsciiError {
pub invalid_from: usize,
}
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 for NotAsciiError
impl PartialEq for NotAsciiError
impl Copy for NotAsciiError
impl StructuralPartialEq for NotAsciiError
Auto Trait Implementations§
impl Freeze for NotAsciiError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes