pub enum DeltaEncoding {
Additive,
Multiplicative,
Compressed,
}Expand description
How the delta is encoded
Variants§
Additive
Simple additive delta: result = state + delta
Multiplicative
Multiplicative (sandwich) delta: result = delta * state * reverse(delta)
Compressed
Compressed log-space: result = exp(delta) * state
Trait Implementations§
Source§impl Clone for DeltaEncoding
impl Clone for DeltaEncoding
Source§fn clone(&self) -> DeltaEncoding
fn clone(&self) -> DeltaEncoding
Returns a duplicate of the value. Read more
1.0.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 DeltaEncoding
impl Debug for DeltaEncoding
Source§impl<'de> Deserialize<'de> for DeltaEncoding
impl<'de> Deserialize<'de> for DeltaEncoding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeltaEncoding
impl PartialEq for DeltaEncoding
Source§impl Serialize for DeltaEncoding
impl Serialize for DeltaEncoding
impl Copy for DeltaEncoding
impl Eq for DeltaEncoding
impl StructuralPartialEq for DeltaEncoding
Auto Trait Implementations§
impl Freeze for DeltaEncoding
impl RefUnwindSafe for DeltaEncoding
impl Send for DeltaEncoding
impl Sync for DeltaEncoding
impl Unpin for DeltaEncoding
impl UnsafeUnpin for DeltaEncoding
impl UnwindSafe for DeltaEncoding
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