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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more