Function half::slice::to_bits

source ·
pub fn to_bits(bits: &[f16]) -> &[u16]
👎Deprecated since 1.4.0: use HalfFloatSliceExt::reinterpret_cast instead
Expand description

Reinterpret a slice of f16 numbers as a slice of u16 bits.

The transmuted slice has the same life time as the original.