pub struct Unwrapper<T> { /* private fields */ }
Expand description
Overflow unwrapper.
This is unwrapping as in the phase and overflow unwrapping context, not
unwrapping as in the Result
/Option
context.
Implementations
Unwrap a new sample from a sequence and update the unwrapper state.
Args:
x
: New sample
Returns:
A tuple containing the (wrapped) difference x - x_old
and the
signed number of wraps accumulated by the new sample.
Trait Implementations
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