pub enum DecodeSliceError {
TruncatedInput,
NeedsMoreSpace,
Corrupted,
Unaligned,
}
Expand description
Errors that may occur while decoding a slice.
Variants§
TruncatedInput
More input bytes were required for decoding.
NeedsMoreSpace
More output space was required for decoding.
Corrupted
The encoded data was not padded using zero bits.
Unaligned
The decoded data did not end on a byte boundary.
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 PartialEq for DecodeSliceError
impl PartialEq for DecodeSliceError
impl Copy 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