#[non_exhaustive]pub struct NonUtf8Error { /* private fields */ }
Expand description
Error that occurs if non-UTF-8 data is found
(When the source
of an io::Error
, ErrorKind
is InvalidData
.)
Implementations§
Trait Implementations§
Source§impl Clone for NonUtf8Error
impl Clone for NonUtf8Error
Source§fn clone(&self) -> NonUtf8Error
fn clone(&self) -> NonUtf8Error
Returns a duplicate 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 NonUtf8Error
impl Debug for NonUtf8Error
Source§impl Display for NonUtf8Error
impl Display for NonUtf8Error
Source§impl Error for NonUtf8Error
impl Error for NonUtf8Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<NonUtf8Error> for Error
impl From<NonUtf8Error> for Error
Source§fn from(us: NonUtf8Error) -> Error
fn from(us: NonUtf8Error) -> Error
Converts to this type from the input type.
Source§impl Hash for NonUtf8Error
impl Hash for NonUtf8Error
Source§impl Ord for NonUtf8Error
impl Ord for NonUtf8Error
Source§fn cmp(&self, other: &NonUtf8Error) -> Ordering
fn cmp(&self, other: &NonUtf8Error) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NonUtf8Error
impl PartialEq for NonUtf8Error
Source§impl PartialOrd for NonUtf8Error
impl PartialOrd for NonUtf8Error
impl Eq for NonUtf8Error
impl StructuralPartialEq for NonUtf8Error
Auto Trait Implementations§
impl Freeze for NonUtf8Error
impl RefUnwindSafe for NonUtf8Error
impl Send for NonUtf8Error
impl Sync for NonUtf8Error
impl Unpin for NonUtf8Error
impl UnwindSafe for NonUtf8Error
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: 16 bytes