pub struct Utf8Error<S> { /* private fields */ }
Implementations§
Source§impl<S> Utf8Error<S>
impl<S> Utf8Error<S>
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Returns the byte buffer back to the caller.
Sourcepub fn utf8_error(&self) -> Utf8Error
pub fn utf8_error(&self) -> Utf8Error
The inner description of why the data is invalid UTF8.
Trait Implementations§
Source§impl<S: Debug> Error for Utf8Error<S>
impl<S: Debug> Error for Utf8Error<S>
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()
impl<S: Copy> Copy for Utf8Error<S>
Auto Trait Implementations§
impl<S> Freeze for Utf8Error<S>where
S: Freeze,
impl<S> RefUnwindSafe for Utf8Error<S>where
S: RefUnwindSafe,
impl<S> Send for Utf8Error<S>where
S: Send,
impl<S> Sync for Utf8Error<S>where
S: Sync,
impl<S> Unpin for Utf8Error<S>where
S: Unpin,
impl<S> UnwindSafe for Utf8Error<S>where
S: UnwindSafe,
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