pub struct DeltaStream<T: Streamable> { /* private fields */ }
Expand description
A stream impl that writes the difference between the last value and the current
value to the provided MutBits
writer. The previous value is initialized to 0.
Implementations§
Source§impl<T: Streamable> DeltaStream<T>
impl<T: Streamable> DeltaStream<T>
Trait Implementations§
Source§impl<S: Streamable + ToSigned<Output = T>, T: Streamable + NumberSigned + Sub<Output = T>> Stream<S> for DeltaStream<T>
impl<S: Streamable + ToSigned<Output = T>, T: Streamable + NumberSigned + Sub<Output = T>> Stream<S> for DeltaStream<T>
Auto Trait Implementations§
impl<T> Freeze for DeltaStream<T>where
T: Freeze,
impl<T> !RefUnwindSafe for DeltaStream<T>
impl<T> !Send for DeltaStream<T>
impl<T> !Sync for DeltaStream<T>
impl<T> Unpin for DeltaStream<T>where
T: Unpin,
impl<T> !UnwindSafe for DeltaStream<T>
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