pub enum FromUtf8Error {
StrFromBytes(Utf8Error),
StringFromBytes(FromUtf8Error),
}
Expand description
Error returned from Oco::try_from
for unsuccessful
conversion from Oco<'_, [u8]>
to Oco<'_, str>
.
Variants§
StrFromBytes(Utf8Error)
Error for conversion of Oco::Borrowed
and Oco::Counted
variants
(&[u8]
to &str
).
StringFromBytes(FromUtf8Error)
Error for conversion of Oco::Owned
variant (Vec<u8>
to String
).
Trait Implementations§
Source§impl Clone for FromUtf8Error
impl Clone for FromUtf8Error
Source§fn clone(&self) -> FromUtf8Error
fn clone(&self) -> FromUtf8Error
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FromUtf8Error
impl Debug for FromUtf8Error
Source§impl Display for FromUtf8Error
impl Display for FromUtf8Error
Source§impl Error for FromUtf8Error
impl Error for FromUtf8Error
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()
Source§impl From<FromUtf8Error> for FromUtf8Error
impl From<FromUtf8Error> for FromUtf8Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromUtf8Error
impl RefUnwindSafe for FromUtf8Error
impl Send for FromUtf8Error
impl Sync for FromUtf8Error
impl Unpin for FromUtf8Error
impl UnwindSafe for FromUtf8Error
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