Trait HalfBitsVecExt
pub trait HalfBitsVecExt: SealedHalfBitsVec
Extensions to [Vec<u16>] to support reinterpret operations.
This trait is sealed and cannot be implemented outside of this crate.
Required Methods
fn reinterpret_into<H>(self) -> Vec<H> where H: SealedHalf,Reinterprets a vector of
u16bits as a vector of [struct@f16] orbf16numbers.His the type to cast to, and must be either the [struct@f16] orbf16type.This is a zero-copy operation. The reinterpreted vector has the same memory location as
self.Examples
# use *; let int_buffer = vec!; let float_buffer = int_buffer.; assert_eq!;
Implementors
impl HalfBitsVecExt for Vec<u16>