Primitive floats types have a to_bits method that is however not implemented by the Float trait.
The one difficulty is that, in the standard implementations, the number of bits of the output differs from one type to another (32 for f32 and 64 for f64).
Primitive floats types have a to_bits method that is however not implemented by the Float trait.
The one difficulty is that, in the standard implementations, the number of bits of the output differs from one type to another (32 for f32 and 64 for f64).