[][src]Struct simulated_packed_simd::bool32x2

#[repr(packed)]pub struct bool32x2(_, _);

Methods

impl bool32x2[src]

pub fn new(x0: i32, x1: i32) -> Self[src]

Create new instance

pub fn splat(x: i32) -> Self[src]

Create new instance with all lanes set to a value

pub fn extract(self, idx: usize) -> i32[src]

Get the idxth lane value

pub fn replace(self, idx: usize, elem: i32) -> Self[src]

Replace the idxth lane with new value

pub fn load(array: &[i32], idx: usize) -> Self[src]

Load instance from an array

pub fn from_slice_aligned(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub fn from_slice_unaligned(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub unsafe fn from_slice_aligned_unchecked(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub unsafe fn from_slice_unaligned_unchecked(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub fn store(self, array: &mut [i32], idx: usize)[src]

Store self to an array

pub fn write_to_slice_aligned(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub fn write_to_slice_unaligned(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub fn all(self) -> bool[src]

Check if all lanes are true

pub fn any(self) -> bool[src]

Check if at least one lane is true

impl bool32x2[src]

pub fn to_i(self) -> i32x2[src]

impl bool32x2[src]

pub fn to_u(self) -> u32x2[src]

Trait Implementations

impl Clone for bool32x2[src]

impl Copy for bool32x2[src]

impl Debug for bool32x2[src]

impl From<bool32x2> for i32x2[src]

fn from(source: bool32x2) -> i32x2[src]

Warning ! The conversion can be lossy

impl From<bool32x2> for u32x2[src]

fn from(source: bool32x2) -> u32x2[src]

Warning ! The conversion can be lossy

impl FromCast<bool32x2> for i32x2[src]

impl FromCast<bool32x2> for u32x2[src]

impl Not for bool32x2[src]

Not trait (!)

type Output = Self

The resulting type after applying the ! operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.