decorum

Type Alias Total

Source
pub type Total<T> = ConstrainedFloat<T, UnitConstraint<T>>;
Expand description

Floating-point representation with total ordering.

Aliased Type§

struct Total<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> Debug for Total<T>
where T: Debug + Float + Primitive,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> From<ConstrainedFloat<T, FiniteConstraint<T>>> for Total<T>
where T: Float + Primitive,

Source§

fn from(other: Finite<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<ConstrainedFloat<T, NotNanConstraint<T>>> for Total<T>
where T: Float + Primitive,

Source§

fn from(other: NotNan<T>) -> Self

Converts to this type from the input type.