pub type AutoBoolx2 = AutoSimd<[bool; 2]>;

Aliased Type§

struct AutoBoolx2(pub [bool; 2]);

Fields§

§0: [bool; 2]

Implementations§

§

impl AutoSimd<[bool; 2]>

pub fn new(_0: bool, _1: bool) -> AutoSimd<[bool; 2]>

Trait Implementations§

§

impl BitAnd<AutoSimd<[bool; 2]>> for AutoSimd<[bool; 2]>

§

type Output = AutoSimd<[bool; 2]>

The resulting type after applying the & operator.
§

fn bitand(self, rhs: AutoSimd<[bool; 2]>) -> AutoSimd<[bool; 2]>

Performs the & operation. Read more
§

impl BitOr<AutoSimd<[bool; 2]>> for AutoSimd<[bool; 2]>

§

type Output = AutoSimd<[bool; 2]>

The resulting type after applying the | operator.
§

fn bitor(self, rhs: AutoSimd<[bool; 2]>) -> AutoSimd<[bool; 2]>

Performs the | operation. Read more
§

impl BitXor<AutoSimd<[bool; 2]>> for AutoSimd<[bool; 2]>

§

type Output = AutoSimd<[bool; 2]>

The resulting type after applying the ^ operator.
§

fn bitxor(self, rhs: AutoSimd<[bool; 2]>) -> AutoSimd<[bool; 2]>

Performs the ^ operation. Read more
§

impl<N> Clone for AutoSimd<N>where N: Clone,

§

fn clone(&self) -> AutoSimd<N>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<N> Debug for AutoSimd<N>where N: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl Display for AutoSimd<[bool; 2]>

§

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

Formats the value using the given formatter. Read more
§

impl From<[bool; 2]> for AutoSimd<[bool; 2]>

§

fn from(vals: [bool; 2]) -> AutoSimd<[bool; 2]>

Converts to this type from the input type.
§

impl Not for AutoSimd<[bool; 2]>

§

type Output = AutoSimd<[bool; 2]>

The resulting type after applying the ! operator.
§

fn not(self) -> AutoSimd<[bool; 2]>

Performs the unary ! operation. Read more
§

impl<N> PartialEq<AutoSimd<N>> for AutoSimd<N>where N: PartialEq<N>,

§

fn eq(&self, other: &AutoSimd<N>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl SimdBool for AutoSimd<[bool; 2]>

§

fn bitmask(self) -> u64

A bit mask representing the boolean state of each lanes of self. Read more
§

fn and(self) -> bool

Lane-wise bitwise and of the vector elements.
§

fn or(self) -> bool

Lane-wise bitwise or of the vector elements.
§

fn xor(self) -> bool

Lane-wise bitwise xor of the vector elements.
§

fn all(self) -> bool

Are all vector lanes true?
§

fn any(self) -> bool

Is any vector lane true?
§

fn none(self) -> bool

Are all vector lanes false?
§

fn if_else<Res>( self, if_value: impl FnOnce() -> Res, else_value: impl FnOnce() -> Res ) -> Reswhere Res: SimdValue<SimdBool = AutoSimd<[bool; 2]>>,

Merges the value of if_value() and else_value() depending on the lanes of self. Read more
§

fn if_else2<Res>( self, if_value: impl FnOnce() -> Res, else_if: (impl FnOnce() -> AutoSimd<[bool; 2]>, impl FnOnce() -> Res), else_value: impl FnOnce() -> Res ) -> Reswhere Res: SimdValue<SimdBool = AutoSimd<[bool; 2]>>,

Merges the value of if_value() and else_if.1() and else_value() depending on the lanes of self and else_if.0(). Read more
§

fn if_else3<Res>( self, if_value: impl FnOnce() -> Res, else_if: (impl FnOnce() -> AutoSimd<[bool; 2]>, impl FnOnce() -> Res), else_else_if: (impl FnOnce() -> AutoSimd<[bool; 2]>, impl FnOnce() -> Res), else_value: impl FnOnce() -> Res ) -> Reswhere Res: SimdValue<SimdBool = AutoSimd<[bool; 2]>>,

Merges the value of if_value() and else_if.1() and else_else_if.1() and else_value() depending on the lanes of self and else_if.0() and else_else_if.0(). Read more
§

impl SimdValue for AutoSimd<[bool; 2]>

§

type Element = bool

The type of the elements of each lane of this SIMD value.
§

type SimdBool = AutoSimd<[bool; 2]>

Type of the result of comparing two SIMD values like self.
§

fn lanes() -> usize

The number of lanes of this SIMD value.
§

fn splat( val: <AutoSimd<[bool; 2]> as SimdValue>::Element ) -> AutoSimd<[bool; 2]>

Initializes an SIMD value with each lanes set to val.
§

fn extract(&self, i: usize) -> <AutoSimd<[bool; 2]> as SimdValue>::Element

Extracts the i-th lane of self. Read more
§

unsafe fn extract_unchecked( &self, i: usize ) -> <AutoSimd<[bool; 2]> as SimdValue>::Element

Extracts the i-th lane of self without bound-checking.
§

fn replace( &mut self, i: usize, val: <AutoSimd<[bool; 2]> as SimdValue>::Element )

Replaces the i-th lane of self by val. Read more
§

unsafe fn replace_unchecked( &mut self, i: usize, val: <AutoSimd<[bool; 2]> as SimdValue>::Element )

Replaces the i-th lane of self by val without bound-checking.
§

fn select( self, cond: <AutoSimd<[bool; 2]> as SimdValue>::SimdBool, other: AutoSimd<[bool; 2]> ) -> AutoSimd<[bool; 2]>

Merges self and other depending on the lanes of cond. Read more
§

fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Selfwhere Self: Clone,

Applies a function to each lane of self. Read more
§

fn zip_map_lanes( self, b: Self, f: impl Fn(Self::Element, Self::Element) -> Self::Element ) -> Selfwhere Self: Clone,

Applies a function to each lane of self paired with the corresponding lane of b. Read more
§

impl<N> Copy for AutoSimd<N>where N: Copy,

§

impl<N> Eq for AutoSimd<N>where N: Eq,

§

impl PrimitiveSimdValue for AutoSimd<[bool; 2]>

§

impl<N> StructuralEq for AutoSimd<N>

§

impl<N> StructuralPartialEq for AutoSimd<N>