[][src]Function half::slice::to_bits

pub fn to_bits(bits: &[f16]) -> &[u16]
Deprecated since 1.4.0:

use HalfFloatSliceExt::reinterpret_cast instead

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

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