decorum

Type Alias Finite

Source
pub type Finite<T> = ConstrainedFloat<T, FiniteConstraint<T>>;
Expand description

Floating-point representation that must be a real number.

If an operation emits NaN or infinities, then a panic will occur. Like Total, this type implements a total ordering.

Aliased Type§

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

Trait Implementations§

Source§

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

Source§

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

Formats the value using the given formatter. Read more