[][src]Struct simd::aarch64::neon::bool64fx2

#[repr(simd)]
pub struct bool64fx2(_, _);

A SIMD boolean vector for length-2 vectors of 64-bit floats.

Methods

impl bool64fx2
[src]

pub fn to_repr(self) -> i64x2
[src]

Convert to integer representation.

pub fn from_repr(x: i64x2) -> Self
[src]

Convert from integer representation.

pub fn new(x0: bool, x1: bool) -> bool64fx2
[src]

Create a new instance.

pub fn splat(x: bool) -> bool64fx2
[src]

Create a new instance where every lane has value x.

pub fn extract(self, idx: u32) -> bool
[src]

Extract the value of the idxth lane of self.

Panics

extract will panic if idx is out of bounds.

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

Return a new vector where the idxth lane is replaced by elem.

Panics

replace will panic if idx is out of bounds.

pub fn select<T: Simd<Bool = bool64fx2>>(self, then: T, else_: T) -> T
[src]

Select between elements of then and else_, based on the corresponding element of self.

This is equivalent to the following, but is possibly more efficient:

This example is not tested
T::new(if self.extract(0) { then.extract(0) } else { else_.extract(0) },
       if self.extract(1) { then.extract(1) } else { else_.extract(1) },
       ...)

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

Check if every element of self is true.

This is equivalent to the following, but is possibly more efficient:

This example is not tested
self.extract(0) && self.extract(1) && ...

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

Check if any element of self is true.

This is equivalent to the following, but is possibly more efficient:

This example is not tested
self.extract(0) || self.extract(1) || ...

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

Convert self to a boolean vector for interacting with integer vectors.

Trait Implementations

impl Simd for bool64fx2
[src]

type Bool = bool64fx2

The corresponding boolean vector type.

type Elem = bool64f

The element that this vector stores.

impl Sse2Bool64fx2 for bool64fx2
[src]

impl AvxBool64fx2 for bool64fx2
[src]

impl Copy for bool64fx2
[src]

impl Clone for bool64fx2
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for bool64fx2
[src]

impl Not for bool64fx2
[src]

type Output = Self

The resulting type after applying the ! operator.

impl BitAnd<bool64fx2> for bool64fx2
[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<bool64fx2> for bool64fx2
[src]

type Output = Self

The resulting type after applying the | operator.

impl BitXor<bool64fx2> for bool64fx2
[src]

type Output = Self

The resulting type after applying the ^ operator.

Auto Trait Implementations

impl Send for bool64fx2

impl Sync for bool64fx2

Blanket Implementations

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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