pub struct Varint {
pub value: u32,
pub consumed: usize,
pub overflow: bool,
}Expand description
A decoded compressed integer.
Fields§
§value: u32The value, already zeroed when overflow is set.
consumed: usizeBytes consumed, including the over-long tail when overflow is set.
overflow: boolThe encoding ran past the byte cap; liblcf substitutes 0.
Trait Implementations§
impl Copy for Varint
impl Eq for Varint
impl StructuralPartialEq for Varint
Auto Trait Implementations§
impl Freeze for Varint
impl RefUnwindSafe for Varint
impl Send for Varint
impl Sync for Varint
impl Unpin for Varint
impl UnsafeUnpin for Varint
impl UnwindSafe for Varint
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