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.

Return the current number of wraps

Return the last known phase

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.