pub enum DecodeVarintError {
Overflow,
NotEnoughBytes,
}Expand description
Decoding varint error.
Variants§
Overflow
The buffer did not contain a valid LEB128 encoding.
NotEnoughBytes
The buffer did not contain enough bytes to decode a value.
Trait Implementations§
source§impl Clone for DecodeVarintError
impl Clone for DecodeVarintError
source§fn clone(&self) -> DecodeVarintError
fn clone(&self) -> DecodeVarintError
Returns a copy of the value. Read more
1.6.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 DecodeVarintError
impl Debug for DecodeVarintError
source§impl Display for DecodeVarintError
impl Display for DecodeVarintError
source§impl Error for DecodeVarintError
impl Error for DecodeVarintError
1.81.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.81.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<DecodeVarintError> for Error
impl From<DecodeVarintError> for Error
source§fn from(e: DecodeVarintError) -> Self
fn from(e: DecodeVarintError) -> Self
Converts to this type from the input type.
source§impl Hash for DecodeVarintError
impl Hash for DecodeVarintError
source§impl PartialEq for DecodeVarintError
impl PartialEq for DecodeVarintError
impl Copy for DecodeVarintError
impl Eq for DecodeVarintError
impl StructuralPartialEq for DecodeVarintError
Auto Trait Implementations§
impl Freeze for DecodeVarintError
impl RefUnwindSafe for DecodeVarintError
impl Send for DecodeVarintError
impl Sync for DecodeVarintError
impl Unpin for DecodeVarintError
impl UnwindSafe for DecodeVarintError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more