Struct encode_unicode::error::Utf8Error
source · [−]pub struct Utf8Error { /* private fields */ }
Expand description
Error returned when an invalid UTF-8 sequence is encountered.
See Utf8ErrorKind
for the types of errors
that this type can be returned for.
Implementations
sourceimpl Utf8Error
impl Utf8Error
sourcepub const fn kind(&self) -> Utf8ErrorKind
pub const fn kind(&self) -> Utf8ErrorKind
Get the type of error.
Trait Implementations
sourceimpl Error for Utf8Error
impl Error for Utf8Error
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<Utf8Error> for Utf8ErrorKind
impl PartialEq<Utf8Error> for Utf8ErrorKind
sourceimpl PartialEq<Utf8ErrorKind> for Utf8Error
impl PartialEq<Utf8ErrorKind> for Utf8Error
impl Copy for Utf8Error
impl Eq for Utf8Error
impl StructuralEq for Utf8Error
impl StructuralPartialEq for Utf8Error
Auto Trait Implementations
impl RefUnwindSafe for Utf8Error
impl Send for Utf8Error
impl Sync for Utf8Error
impl Unpin for Utf8Error
impl UnwindSafe for Utf8Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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