[−][src]Trait decorum::ToCanonicalBits
Converts floating-point values into a canonicalized form.
Required methods
fn to_canonical_bits(self) -> u64
Conversion to a canonical representation.
Unlike the to_bits
function provided by f32
and f64
, this function
returns bits in a fix-sized vector (u64
) and collapses representations
for real numbers, infinities, and NaN
s into a canonical form such that
every semantic value has a unique representation as canonical bits.
Implementors
impl<T> ToCanonicalBits for T where
T: Encoding + Nan + Primitive,
[src]
T: Encoding + Nan + Primitive,
fn to_canonical_bits(self) -> u64
[src]
impl<T, P> ToCanonicalBits for ConstrainedFloat<T, P> where
T: Float + Primitive,
P: Constraint<T>,
[src]
T: Float + Primitive,
P: Constraint<T>,