pub fn to_bits(bits: &[f16]) -> &[u16]
👎Deprecated since 1.4.0: use
HalfFloatSliceExt::reinterpret_cast
insteadExpand description
Reinterpret a slice of f16
numbers as a slice of u16
bits.
The transmuted slice has the same life time as the original.