Enum varu64::DecodeError
source · pub enum DecodeError {
NonCanonical(u64),
UnexpectedEndOfInput,
}
Expand description
Everything that can go wrong when decoding a varu64.
Variants§
NonCanonical(u64)
The encoding is not the shortest possible one for the number. Contains the encoded number.
UnexpectedEndOfInput
The slice contains less data than the encoding needs.
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
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 DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl Error for DecodeError
impl Error for DecodeError
1.30.0 · 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()
source§impl Hash for DecodeError
impl Hash for DecodeError
source§impl Ord for DecodeError
impl Ord for DecodeError
source§fn cmp(&self, other: &DecodeError) -> Ordering
fn cmp(&self, other: &DecodeError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DecodeError> for DecodeError
impl PartialEq<DecodeError> for DecodeError
source§fn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
source§impl PartialOrd<DecodeError> for DecodeError
impl PartialOrd<DecodeError> for DecodeError
source§fn partial_cmp(&self, other: &DecodeError) -> Option<Ordering>
fn partial_cmp(&self, other: &DecodeError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more