Struct f16x2

#[repr(simd)]
pub struct f16x2(pub(in ::core_arch::nvptx::packed) [f16; 2]);

PTX-specific 32-bit wide floating point (f16 x 2) vector type

Fields

0: [f16; 2]

Implementations

impl f16x2

fn splat(value: f16) -> f16x2

Put the same value in every lane.

const fn as_array(&self) -> &[f16; 2]

Returns an array reference containing the entire SIMD vector.

fn as_mut_array(&mut self) -> &mut [f16; 2]

Returns a mutable array reference containing the entire SIMD vector.

Trait Implementations

impl Clone for f16x2

fn clone(&self) -> f16x2

impl Copy for f16x2

impl Debug for f16x2

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl From<Simd<f16, 2>> for f16x2

fn from(simd: Simd<f16, 2>) -> Self

impl TrivialClone for f16x2

Auto Trait Implementations

impl Freeze for f16x2

impl RefUnwindSafe for f16x2

impl Send for f16x2

impl Sync for f16x2

impl Unpin for f16x2

impl UnsafeUnpin for f16x2

impl UnwindSafe for f16x2

Blanket Implementations

impl<T> Any for f16x2 where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for f16x2 where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for f16x2 where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for f16x2 where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for f16x2

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for f16x2 where T: Copy + Debug,

impl<T> SizeHint for f16x2 where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for f16x2

impl<T, U> Into<U> for f16x2 where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for f16x2 where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for f16x2 where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>