pub enum Leb128DecodeErrorKind {
Incomplete,
Malformed,
NonCanonical,
}Expand description
Classifies failures detected while decoding LEB128 integers.
Variants§
Incomplete
The input ended before a terminating LEB128 byte was available.
Malformed
The input bytes cannot represent a value of the requested width.
NonCanonical
Strict decoding rejected a value that was not minimally encoded.
Trait Implementations§
Source§impl Clone for Leb128DecodeErrorKind
impl Clone for Leb128DecodeErrorKind
impl Copy for Leb128DecodeErrorKind
Source§impl Debug for Leb128DecodeErrorKind
impl Debug for Leb128DecodeErrorKind
Source§impl Display for Leb128DecodeErrorKind
impl Display for Leb128DecodeErrorKind
impl Eq for Leb128DecodeErrorKind
Source§impl Error for Leb128DecodeErrorKind
impl Error for Leb128DecodeErrorKind
1.30.0 · 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 PartialEq for Leb128DecodeErrorKind
impl PartialEq for Leb128DecodeErrorKind
impl StructuralPartialEq for Leb128DecodeErrorKind
Auto Trait Implementations§
impl Freeze for Leb128DecodeErrorKind
impl RefUnwindSafe for Leb128DecodeErrorKind
impl Send for Leb128DecodeErrorKind
impl Sync for Leb128DecodeErrorKind
impl Unpin for Leb128DecodeErrorKind
impl UnsafeUnpin for Leb128DecodeErrorKind
impl UnwindSafe for Leb128DecodeErrorKind
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