simba::simd

Type Alias AutoBoolx1

Source
pub type AutoBoolx1 = AutoSimd<[bool; 1]>;

Aliased Type§

struct AutoBoolx1(pub [bool; 1]);

Fields§

§0: [bool; 1]

Implementations

Source§

impl AutoSimd<[bool; 1]>

Source

pub fn new(_0: bool) -> Self

Trait Implementations

Source§

impl BitAnd for AutoSimd<[bool; 1]>

Source§

type Output = AutoSimd<[bool; 1]>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl BitOr for AutoSimd<[bool; 1]>

Source§

type Output = AutoSimd<[bool; 1]>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitXor for AutoSimd<[bool; 1]>

Source§

type Output = AutoSimd<[bool; 1]>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

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

Source§

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
Source§

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

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for AutoSimd<[bool; 1]>

Source§

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

Formats the value using the given formatter. Read more
Source§

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

Source§

fn from(vals: [bool; 1]) -> Self

Converts to this type from the input type.
Source§

impl Not for AutoSimd<[bool; 1]>

Source§

type Output = AutoSimd<[bool; 1]>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self

Performs the unary ! operation. Read more
Source§

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

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl SimdBool for AutoSimd<[bool; 1]>

Source§

fn bitmask(self) -> u64

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

fn and(self) -> bool

Lane-wise bitwise and of the vector elements.
Source§

fn or(self) -> bool

Lane-wise bitwise or of the vector elements.
Source§

fn xor(self) -> bool

Lane-wise bitwise xor of the vector elements.
Source§

fn all(self) -> bool

Are all vector lanes true?
Source§

fn any(self) -> bool

Is any vector lane true?
Source§

fn none(self) -> bool

Are all vector lanes false?
Source§

fn if_else<Res: SimdValue<SimdBool = Self>>( self, if_value: impl FnOnce() -> Res, else_value: impl FnOnce() -> Res, ) -> Res

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

fn if_else2<Res: SimdValue<SimdBool = Self>>( self, if_value: impl FnOnce() -> Res, else_if: (impl FnOnce() -> Self, impl FnOnce() -> Res), else_value: impl FnOnce() -> Res, ) -> Res

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
Source§

fn if_else3<Res: SimdValue<SimdBool = Self>>( self, if_value: impl FnOnce() -> Res, else_if: (impl FnOnce() -> Self, impl FnOnce() -> Res), else_else_if: (impl FnOnce() -> Self, impl FnOnce() -> Res), else_value: impl FnOnce() -> Res, ) -> Res

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
Source§

impl SimdValue for AutoSimd<[bool; 1]>

Source§

type Element = bool

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

type SimdBool = AutoSimd<[bool; 1]>

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

fn lanes() -> usize

The number of lanes of this SIMD value.
Source§

fn splat(val: Self::Element) -> Self

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

fn extract(&self, i: usize) -> Self::Element

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

unsafe fn extract_unchecked(&self, i: usize) -> Self::Element

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

fn replace(&mut self, i: usize, val: Self::Element)

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

unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)

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

fn select(self, cond: Self::SimdBool, other: Self) -> Self

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

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

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

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

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

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

Source§

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

Source§

impl PrimitiveSimdValue for AutoSimd<[bool; 1]>

Source§

impl<N> StructuralPartialEq for AutoSimd<N>