pub enum DecodeSliceError {
DecodeError(DecodeError),
OutputSliceTooSmall,
}
Expand description
Errors that can occur while decoding into a slice.
Variants§
DecodeError(DecodeError)
A DecodeError occurred
OutputSliceTooSmall
The provided slice is too small.
Trait Implementations§
Source§impl Clone for DecodeSliceError
impl Clone for DecodeSliceError
Source§fn clone(&self) -> DecodeSliceError
fn clone(&self) -> DecodeSliceError
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 DecodeSliceError
impl Debug for DecodeSliceError
Source§impl Display for DecodeSliceError
impl Display for DecodeSliceError
Source§impl Error for DecodeSliceError
impl Error for DecodeSliceError
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<DecodeError> for DecodeSliceError
impl From<DecodeError> for DecodeSliceError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecodeSliceError
impl PartialEq for DecodeSliceError
impl Eq for DecodeSliceError
impl StructuralPartialEq for DecodeSliceError
Auto Trait Implementations§
impl Freeze for DecodeSliceError
impl RefUnwindSafe for DecodeSliceError
impl Send for DecodeSliceError
impl Sync for DecodeSliceError
impl Unpin for DecodeSliceError
impl UnwindSafe for DecodeSliceError
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