pub enum FromMaybeEmptyUtf8Error {
Empty(EmptyByteVec),
Utf8(FromNonEmptyUtf8Error),
}Available on crate features
std or alloc only.Expand description
Represents errors returned when the provided byte vector is empty or invalid UTF-8.
Variants§
Empty(EmptyByteVec)
The received byte vector is empty.
Utf8(FromNonEmptyUtf8Error)
The received byte vector is non-empty, but invalid UTF-8.
Trait Implementations§
Source§impl Debug for FromMaybeEmptyUtf8Error
impl Debug for FromMaybeEmptyUtf8Error
Source§impl Display for FromMaybeEmptyUtf8Error
impl Display for FromMaybeEmptyUtf8Error
Source§impl Error for FromMaybeEmptyUtf8Error
impl Error for FromMaybeEmptyUtf8Error
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<EmptyVec<u8>> for FromMaybeEmptyUtf8Error
impl From<EmptyVec<u8>> for FromMaybeEmptyUtf8Error
Source§fn from(source: EmptyByteVec) -> Self
fn from(source: EmptyByteVec) -> Self
Converts to this type from the input type.
Source§impl From<FromNonEmptyUtf8Error> for FromMaybeEmptyUtf8Error
impl From<FromNonEmptyUtf8Error> for FromMaybeEmptyUtf8Error
Source§fn from(source: FromNonEmptyUtf8Error) -> Self
fn from(source: FromNonEmptyUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromMaybeEmptyUtf8Error
impl RefUnwindSafe for FromMaybeEmptyUtf8Error
impl Send for FromMaybeEmptyUtf8Error
impl Sync for FromMaybeEmptyUtf8Error
impl Unpin for FromMaybeEmptyUtf8Error
impl UnwindSafe for FromMaybeEmptyUtf8Error
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