Enum varu64::DecodeError [−][src]
pub enum DecodeError {
NonCanonical {
encoded_number: u64,
},
UnexpectedEndOfInput,
ExpectedANonZeroU64,
EncodedNonZeroValueOverflowed,
}
Expand description
Everything that can go wrong when decoding a varu64.
Variants
The encoding is not the shortest possible one for the number. Contains the encoded number.
Fields of NonCanonical
encoded_number: u64
The slice contains less data than the encoding needs.
Did not encode a non-zero u64
Encoded a value that overflowed when converting from varu64 to non_zero value
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.