Struct bytes_utils::string::Utf8Error
source · 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)>
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> 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