pub struct BadUtf8Error {
pub bytes: Vec<u8>,
}
Expand description
An error raised when parsing a UTF-8 byte stream fails.
Fields§
§bytes: Vec<u8>
The bytes that could not be parsed as a code point.
Trait Implementations§
Source§impl Debug for BadUtf8Error
impl Debug for BadUtf8Error
Source§impl Display for BadUtf8Error
impl Display for BadUtf8Error
Source§impl Error for BadUtf8Error
impl Error for BadUtf8Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for BadUtf8Error
impl RefUnwindSafe for BadUtf8Error
impl Send for BadUtf8Error
impl Sync for BadUtf8Error
impl Unpin for BadUtf8Error
impl UnwindSafe for BadUtf8Error
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