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()