pub struct F32ToF16<'s, 'd> { /* private fields */ }Expand description
Convert a slice of f32 values to f16.
Values are rounded to the nearest f16, with ties to even. Values whose
magnitude exceeds the f16 range are rounded to infinity.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s, 'd> !UnwindSafe for F32ToF16<'s, 'd>
impl<'s, 'd> Freeze for F32ToF16<'s, 'd>
impl<'s, 'd> RefUnwindSafe for F32ToF16<'s, 'd>
impl<'s, 'd> Send for F32ToF16<'s, 'd>
impl<'s, 'd> Sync for F32ToF16<'s, 'd>
impl<'s, 'd> Unpin for F32ToF16<'s, 'd>
impl<'s, 'd> UnsafeUnpin for F32ToF16<'s, 'd>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more