Function half::slice::to_bits_mut [−][src]
pub fn to_bits_mut(bits: &mut [f16]) -> &mut [u16]
👎 Deprecated since 1.4.0:
use HalfFloatSliceExt::reinterpret_cast_mut
instead
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.