pub struct VByteDeltaIntStream<'a, T, B: MutBits> { /* private fields */ }
Expand description
A stream impl that writes the varint-encoded difference between the last
value and the current value to the provided MutBits
writer. The previous
value is initialized to 0.
Implementations§
Source§impl<'a, T: Streamable, B: MutBits> VByteDeltaIntStream<'a, T, B>
impl<'a, T: Streamable, B: MutBits> VByteDeltaIntStream<'a, T, B>
Sourcepub fn new(writer: BitsWrapper<'a, B>) -> VByteDeltaIntStream<'_, T, B>
pub fn new(writer: BitsWrapper<'a, B>) -> VByteDeltaIntStream<'_, T, B>
Creates a new stream
Trait Implementations§
Source§impl<'a, T: Streamable + Sub<Output = T> + EncodeVByteTo + UpperHex + Sub<T> + NumberSigned, B: MutBits> Stream<T> for VByteDeltaIntStream<'a, T, B>
impl<'a, T: Streamable + Sub<Output = T> + EncodeVByteTo + UpperHex + Sub<T> + NumberSigned, B: MutBits> Stream<T> for VByteDeltaIntStream<'a, T, B>
Auto Trait Implementations§
impl<'a, T, B> Freeze for VByteDeltaIntStream<'a, T, B>
impl<'a, T, B> RefUnwindSafe for VByteDeltaIntStream<'a, T, B>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, T, B> Send for VByteDeltaIntStream<'a, T, B>
impl<'a, T, B> Sync for VByteDeltaIntStream<'a, T, B>
impl<'a, T, B> Unpin for VByteDeltaIntStream<'a, T, B>
impl<'a, T, B> !UnwindSafe for VByteDeltaIntStream<'a, T, B>
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