Struct std::simd::m8x4 [−][src]
#[repr(simd)]pub struct m8x4(_, _, _, _);
A 32-bit wide vector mask 4 lanes.
Methods
impl m8x4
[src]
impl m8x4
pub const fn new(x0: bool, x1: bool, x2: bool, x3: bool) -> m8x4
[src]
pub const fn new(x0: bool, x1: bool, x2: bool, x3: bool) -> m8x4
Creates a new instance with each vector elements initialized with the provided values.
pub const fn lanes() -> usize
[src]
pub const fn lanes() -> usize
Returns the number of vector lanes.
pub const fn splat(value: bool) -> m8x4
[src]
pub const fn splat(value: bool) -> m8x4
Constructs a new instance with each element initialized to
value
.
pub fn extract(self, index: usize) -> bool
[src]
pub fn extract(self, index: usize) -> bool
pub unsafe fn extract_unchecked(self, index: usize) -> bool
[src]
pub unsafe fn extract_unchecked(self, index: usize) -> bool
Extracts the value at index
.
If index >= Self::lanes()
the behavior is undefined.
pub fn replace(self, index: usize, new_value: bool) -> m8x4
[src]
pub fn replace(self, index: usize, new_value: bool) -> m8x4
Returns a new vector where the value at index
is replaced by new_value
.
Panics
If index >= Self::lanes()
.
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> m8x4
[src]
pub unsafe fn replace_unchecked(self, index: usize, new_value: bool) -> m8x4
Returns a new vector where the value at index
is replaced by new_value
.
Panics
If index >= Self::lanes()
.
impl m8x4
[src]
impl m8x4
pub fn and(self) -> bool
[src]
pub fn and(self) -> bool
Lane-wise bitwise and
of the vector elements.
pub fn or(self) -> bool
[src]
pub fn or(self) -> bool
Lane-wise bitwise or
of the vector elements.
pub fn xor(self) -> bool
[src]
pub fn xor(self) -> bool
Lane-wise bitwise xor
of the vector elements.
impl m8x4
[src]
impl m8x4
pub fn all(self) -> bool
[src]
pub fn all(self) -> bool
Are all
vector lanes true
?
pub fn any(self) -> bool
[src]
pub fn any(self) -> bool
Is any
vector lanes true
?
pub fn none(self) -> bool
[src]
pub fn none(self) -> bool
Are all
vector lanes false
?
impl m8x4
[src]
impl m8x4
pub fn select<T>(self, a: T, b: T) -> T where
T: Lanes<[u32; 4]>,
[src]
pub fn select<T>(self, a: T, b: T) -> T where
T: Lanes<[u32; 4]>,
Selects elements of a
and b
using mask.
For each lane, the result contains the element of a
if the
mask is true, and the element of b
otherwise.
impl m8x4
[src]
impl m8x4
pub fn eq(self, other: m8x4) -> m8x4
[src]
pub fn eq(self, other: m8x4) -> m8x4
Lane-wise equality comparison.
pub fn ne(self, other: m8x4) -> m8x4
[src]
pub fn ne(self, other: m8x4) -> m8x4
Lane-wise inequality comparison.
pub fn lt(self, other: m8x4) -> m8x4
[src]
pub fn lt(self, other: m8x4) -> m8x4
Lane-wise less-than comparison.
pub fn le(self, other: m8x4) -> m8x4
[src]
pub fn le(self, other: m8x4) -> m8x4
Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: m8x4) -> m8x4
[src]
pub fn gt(self, other: m8x4) -> m8x4
Lane-wise greater-than comparison.
pub fn ge(self, other: m8x4) -> m8x4
[src]
pub fn ge(self, other: m8x4) -> m8x4
Lane-wise greater-than-or-equals comparison.
Trait Implementations
impl BitOr<m8x4> for m8x4
[src]
impl BitOr<m8x4> for m8x4
type Output = m8x4
The resulting type after applying the |
operator.
fn bitor(self, other: m8x4) -> m8x4
[src]
fn bitor(self, other: m8x4) -> m8x4
Performs the |
operation.
impl BitOr<m8x4> for bool
[src]
impl BitOr<m8x4> for bool
type Output = m8x4
The resulting type after applying the |
operator.
fn bitor(self, other: m8x4) -> m8x4
[src]
fn bitor(self, other: m8x4) -> m8x4
Performs the |
operation.
impl BitOr<bool> for m8x4
[src]
impl BitOr<bool> for m8x4
type Output = m8x4
The resulting type after applying the |
operator.
fn bitor(self, other: bool) -> m8x4
[src]
fn bitor(self, other: bool) -> m8x4
Performs the |
operation.
impl FromBits<m8x4> for u8x4
[src]
impl FromBits<m8x4> for u8x4
impl FromBits<m8x4> for i8x4
[src]
impl FromBits<m8x4> for i8x4
impl FromBits<m8x4> for i16x2
[src]
impl FromBits<m8x4> for i16x2
impl FromBits<m8x4> for u16x2
[src]
impl FromBits<m8x4> for u16x2
impl From<m16x4> for m8x4
[src]
impl From<m16x4> for m8x4
impl From<m8x4> for u32x4
[src]
impl From<m8x4> for u32x4
impl From<m8x4> for u8x4
[src]
impl From<m8x4> for u8x4
impl From<m8x4> for i8x4
[src]
impl From<m8x4> for i8x4
impl From<m8x4> for m64x4
[src]
impl From<m8x4> for m64x4
impl From<m8x4> for m32x4
[src]
impl From<m8x4> for m32x4
impl From<m8x4> for i64x4
[src]
impl From<m8x4> for i64x4
impl From<m64x4> for m8x4
[src]
impl From<m64x4> for m8x4
impl From<m8x4> for u64x4
[src]
impl From<m8x4> for u64x4
impl From<m8x4> for i16x4
[src]
impl From<m8x4> for i16x4
impl From<m32x4> for m8x4
[src]
impl From<m32x4> for m8x4
impl From<m8x4> for f32x4
[src]
impl From<m8x4> for f32x4
impl From<m8x4> for i32x4
[src]
impl From<m8x4> for i32x4
impl From<m8x4> for m16x4
[src]
impl From<m8x4> for m16x4
impl From<m8x4> for f64x4
[src]
impl From<m8x4> for f64x4
impl From<m8x4> for u16x4
[src]
impl From<m8x4> for u16x4
impl Clone for m8x4
[src]
impl Clone for m8x4
fn clone(&self) -> m8x4
[src]
fn clone(&self) -> m8x4
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd<m8x4> for m8x4
[src]
impl PartialOrd<m8x4> for m8x4
fn partial_cmp(&self, other: &m8x4) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &m8x4) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &m8x4) -> bool
[src]
fn lt(&self, other: &m8x4) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &m8x4) -> bool
[src]
fn le(&self, other: &m8x4) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &m8x4) -> bool
[src]
fn gt(&self, other: &m8x4) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &m8x4) -> bool
[src]
fn ge(&self, other: &m8x4) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl BitXor<bool> for m8x4
[src]
impl BitXor<bool> for m8x4
type Output = m8x4
The resulting type after applying the ^
operator.
fn bitxor(self, other: bool) -> m8x4
[src]
fn bitxor(self, other: bool) -> m8x4
Performs the ^
operation.
impl BitXor<m8x4> for m8x4
[src]
impl BitXor<m8x4> for m8x4
type Output = m8x4
The resulting type after applying the ^
operator.
fn bitxor(self, other: m8x4) -> m8x4
[src]
fn bitxor(self, other: m8x4) -> m8x4
Performs the ^
operation.
impl BitXor<m8x4> for bool
[src]
impl BitXor<m8x4> for bool
type Output = m8x4
The resulting type after applying the ^
operator.
fn bitxor(self, other: m8x4) -> m8x4
[src]
fn bitxor(self, other: m8x4) -> m8x4
Performs the ^
operation.
impl Not for m8x4
[src]
impl Not for m8x4
type Output = m8x4
The resulting type after applying the !
operator.
fn not(self) -> m8x4
[src]
fn not(self) -> m8x4
Performs the unary !
operation.
impl Copy for m8x4
[src]
impl Copy for m8x4
impl Eq for m8x4
[src]
impl Eq for m8x4
impl PartialEq<m8x4> for m8x4
[src]
impl PartialEq<m8x4> for m8x4
fn eq(&self, other: &m8x4) -> bool
[src]
fn eq(&self, other: &m8x4) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &m8x4) -> bool
[src]
fn ne(&self, other: &m8x4) -> bool
This method tests for !=
.
impl Debug for m8x4
[src]
impl Debug for m8x4
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl BitAnd<m8x4> for m8x4
[src]
impl BitAnd<m8x4> for m8x4
type Output = m8x4
The resulting type after applying the &
operator.
fn bitand(self, other: m8x4) -> m8x4
[src]
fn bitand(self, other: m8x4) -> m8x4
Performs the &
operation.
impl BitAnd<bool> for m8x4
[src]
impl BitAnd<bool> for m8x4
type Output = m8x4
The resulting type after applying the &
operator.
fn bitand(self, other: bool) -> m8x4
[src]
fn bitand(self, other: bool) -> m8x4
Performs the &
operation.
impl BitAnd<m8x4> for bool
[src]
impl BitAnd<m8x4> for bool
type Output = m8x4
The resulting type after applying the &
operator.
fn bitand(self, other: m8x4) -> m8x4
[src]
fn bitand(self, other: m8x4) -> m8x4
Performs the &
operation.
impl Default for m8x4
[src]
impl Default for m8x4
impl BitXorAssign<m8x4> for m8x4
[src]
impl BitXorAssign<m8x4> for m8x4
fn bitxor_assign(&mut self, other: m8x4)
[src]
fn bitxor_assign(&mut self, other: m8x4)
Performs the ^=
operation.
impl BitXorAssign<bool> for m8x4
[src]
impl BitXorAssign<bool> for m8x4
fn bitxor_assign(&mut self, other: bool)
[src]
fn bitxor_assign(&mut self, other: bool)
Performs the ^=
operation.
impl BitOrAssign<m8x4> for m8x4
[src]
impl BitOrAssign<m8x4> for m8x4
fn bitor_assign(&mut self, other: m8x4)
[src]
fn bitor_assign(&mut self, other: m8x4)
Performs the |=
operation.
impl BitOrAssign<bool> for m8x4
[src]
impl BitOrAssign<bool> for m8x4
fn bitor_assign(&mut self, other: bool)
[src]
fn bitor_assign(&mut self, other: bool)
Performs the |=
operation.
impl BitAndAssign<m8x4> for m8x4
[src]
impl BitAndAssign<m8x4> for m8x4
fn bitand_assign(&mut self, other: m8x4)
[src]
fn bitand_assign(&mut self, other: m8x4)
Performs the &=
operation.
impl BitAndAssign<bool> for m8x4
[src]
impl BitAndAssign<bool> for m8x4
fn bitand_assign(&mut self, other: bool)
[src]
fn bitand_assign(&mut self, other: bool)
Performs the &=
operation.