pub enum StringTransformError {
EncodeBufferTooSmall,
NotEnoughBytes,
Utf8Error(Utf8Error),
}
Expand description
The error type for errors that get returned when encoding or decoding str based structs fails.
Variants§
EncodeBufferTooSmall
Returned when the buffer is too small to encode.
NotEnoughBytes
Returned when the decoding meet corruption.
Utf8Error(Utf8Error)
Returned when the decoding meet utf8 error.
Trait Implementations§
source§impl Debug for StringTransformError
impl Debug for StringTransformError
source§impl Display for StringTransformError
impl Display for StringTransformError
source§impl Error for StringTransformError
impl Error for StringTransformError
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()
Auto Trait Implementations§
impl Freeze for StringTransformError
impl RefUnwindSafe for StringTransformError
impl Send for StringTransformError
impl Sync for StringTransformError
impl Unpin for StringTransformError
impl UnwindSafe for StringTransformError
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