pub fn to_bits_mut(bits: &mut [f16]) -> &mut [u16]
👎Deprecated since 1.4.0: use
HalfFloatSliceExt::reinterpret_cast_mut
insteadExpand description
Reinterpret a mutable slice of f16
numbers as a mutable slice of u16
bits.
The transmuted slice has the same life time as the original, which prevents mutating the
borrowed mut [f16]
argument as long as the returned mut [u16]
is borrowed.