pub enum VIntError {
Truncated,
}Expand description
Error returned by the canonical read-side VInt decoders.
The single failure mode is a buffer that is empty, or shorter than the width the lead byte’s leading-ones count declares. There is no fabricated-value or framing-dependent path (Issue #1624).
Variants§
Truncated
Input ended before the full VInt could be read (covers empty input).
Trait Implementations§
impl Copy for VIntError
impl Eq for VIntError
impl StructuralPartialEq for VIntError
Auto Trait Implementations§
impl Freeze for VIntError
impl RefUnwindSafe for VIntError
impl Send for VIntError
impl Sync for VIntError
impl Unpin for VIntError
impl UnsafeUnpin for VIntError
impl UnwindSafe for VIntError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.