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