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