Type Definition packed_simd_2::msizex2 [−][src]
type msizex2 = Simd<[msize; 2]>;
Expand description
A vector mask with 2 msize
lanes.
Implementations
impl msizex2
[src]
impl msizex2
[src]pub const fn new(x0: bool, x1: bool) -> Self
[src]
pub const fn new(x0: bool, x1: bool) -> Self
[src]Creates a new instance with each vector elements initialized with the provided values.
pub const fn splat(value: bool) -> Self
[src]
pub const fn splat(value: bool) -> Self
[src]Constructs a new instance with each element initialized to
value
.
pub unsafe fn extract_unchecked(self, index: usize) -> bool
[src]
pub unsafe fn extract_unchecked(self, index: usize) -> bool
[src]#[must_use = "replace does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub fn replace(self, index: usize, new_value: bool) -> Self
[src]
#[must_use = "replace does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub fn replace(self, index: usize, new_value: bool) -> Self
[src]Returns a new vector where the value at index
is replaced by
new_value
.
Panics
If index >= Self::lanes()
.
#[must_use = "replace_unchecked does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> Self
[src]
#[must_use = "replace_unchecked does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> Self
[src]Returns a new vector where the value at index
is replaced by
new_value
.
Safety
If index >= Self::lanes()
the behavior is undefined.
impl msizex2
[src]
impl msizex2
[src]pub fn and(self) -> bool
[src]
pub fn and(self) -> bool
[src]Lane-wise bitwise and
of the vector elements.
Note: if the vector has one lane, the first element of the vector is returned.
impl msizex2
[src]
impl msizex2
[src]impl msizex2
[src]
impl msizex2
[src]impl msizex2
[src]
impl msizex2
[src]impl msizex2
[src]
impl msizex2
[src]pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<msizex2>
[src]
pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<msizex2>
[src]Returns a wrapper that implements PartialOrd
.
impl msizex2
[src]
impl msizex2
[src]pub fn lex_ord(&self) -> LexicographicallyOrdered<msizex2>
[src]
pub fn lex_ord(&self) -> LexicographicallyOrdered<msizex2>
[src]Returns a wrapper that implements Ord
.
impl msizex2
[src]
impl msizex2
[src]pub fn shuffle1_dyn<I>(self, indices: I) -> Self where
Self: Shuffle1Dyn<Indices = I>,
[src]
pub fn shuffle1_dyn<I>(self, indices: I) -> Self where
Self: Shuffle1Dyn<Indices = I>,
[src]Shuffle vector elements according to indices
.
impl msizex2
[src]
impl msizex2
[src]Trait Implementations
impl BitAndAssign<Simd<[msize; 2]>> for msizex2
[src]
impl BitAndAssign<Simd<[msize; 2]>> for msizex2
[src]fn bitand_assign(&mut self, other: Self)
[src]
fn bitand_assign(&mut self, other: Self)
[src]Performs the &=
operation. Read more
impl BitAndAssign<bool> for msizex2
[src]
impl BitAndAssign<bool> for msizex2
[src]fn bitand_assign(&mut self, other: bool)
[src]
fn bitand_assign(&mut self, other: bool)
[src]Performs the &=
operation. Read more
impl BitOrAssign<Simd<[msize; 2]>> for msizex2
[src]
impl BitOrAssign<Simd<[msize; 2]>> for msizex2
[src]fn bitor_assign(&mut self, other: Self)
[src]
fn bitor_assign(&mut self, other: Self)
[src]Performs the |=
operation. Read more
impl BitOrAssign<bool> for msizex2
[src]
impl BitOrAssign<bool> for msizex2
[src]fn bitor_assign(&mut self, other: bool)
[src]
fn bitor_assign(&mut self, other: bool)
[src]Performs the |=
operation. Read more
impl BitXorAssign<Simd<[msize; 2]>> for msizex2
[src]
impl BitXorAssign<Simd<[msize; 2]>> for msizex2
[src]fn bitxor_assign(&mut self, other: Self)
[src]
fn bitxor_assign(&mut self, other: Self)
[src]Performs the ^=
operation. Read more
impl BitXorAssign<bool> for msizex2
[src]
impl BitXorAssign<bool> for msizex2
[src]fn bitxor_assign(&mut self, other: bool)
[src]
fn bitxor_assign(&mut self, other: bool)
[src]Performs the ^=
operation. Read more