Struct std::simd::m1x32 [−][src]
#[repr(simd)]pub struct m1x32(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);
A 32-bit vector mask with 32 lanes (FIXME: 512-bit wide).
Methods
impl m1x32[src]
impl m1x32pub const fn new(
x0: bool,
x1: bool,
x2: bool,
x3: bool,
x4: bool,
x5: bool,
x6: bool,
x7: bool,
x8: bool,
x9: bool,
x10: bool,
x11: bool,
x12: bool,
x13: bool,
x14: bool,
x15: bool,
x16: bool,
x17: bool,
x18: bool,
x19: bool,
x20: bool,
x21: bool,
x22: bool,
x23: bool,
x24: bool,
x25: bool,
x26: bool,
x27: bool,
x28: bool,
x29: bool,
x30: bool,
x31: bool
) -> m1x32[src]
pub const fn new(
x0: bool,
x1: bool,
x2: bool,
x3: bool,
x4: bool,
x5: bool,
x6: bool,
x7: bool,
x8: bool,
x9: bool,
x10: bool,
x11: bool,
x12: bool,
x13: bool,
x14: bool,
x15: bool,
x16: bool,
x17: bool,
x18: bool,
x19: bool,
x20: bool,
x21: bool,
x22: bool,
x23: bool,
x24: bool,
x25: bool,
x26: bool,
x27: bool,
x28: bool,
x29: bool,
x30: bool,
x31: bool
) -> m1x32Creates a new instance with each vector elements initialized with the provided values.
pub const fn lanes() -> usize[src]
pub const fn lanes() -> usizeReturns the number of vector lanes.
pub const fn splat(value: bool) -> m1x32[src]
pub const fn splat(value: bool) -> m1x32Constructs a new instance with each element initialized to
value.
pub fn extract(self, index: usize) -> bool[src]
pub fn extract(self, index: usize) -> boolpub unsafe fn extract_unchecked(self, index: usize) -> bool[src]
pub unsafe fn extract_unchecked(self, index: usize) -> boolExtracts the value at index.
If index >= Self::lanes() the behavior is undefined.
#[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) -> m1x32[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) -> m1x32Returns 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) -> m1x32[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) -> m1x32Returns a new vector where the value at index is replaced by new_value.
Panics
If index >= Self::lanes().
impl m1x32[src]
impl m1x32pub fn and(self) -> bool[src]
pub fn and(self) -> boolLane-wise bitwise and of the vector elements.
pub fn or(self) -> bool[src]
pub fn or(self) -> boolLane-wise bitwise or of the vector elements.
pub fn xor(self) -> bool[src]
pub fn xor(self) -> boolLane-wise bitwise xor of the vector elements.
impl m1x32[src]
impl m1x32pub fn all(self) -> bool[src]
pub fn all(self) -> boolAre all vector lanes true?
pub fn any(self) -> bool[src]
pub fn any(self) -> boolIs any vector lanes true?
pub fn none(self) -> bool[src]
pub fn none(self) -> boolAre all vector lanes false?
impl m1x32[src]
impl m1x32pub fn select<T>(self, a: T, b: T) -> T where
T: Lanes<[u32; 32]>, [src]
pub fn select<T>(self, a: T, b: T) -> T where
T: Lanes<[u32; 32]>, 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 m1x32[src]
impl m1x32pub fn eq(self, other: m1x32) -> m1x32[src]
pub fn eq(self, other: m1x32) -> m1x32Lane-wise equality comparison.
pub fn ne(self, other: m1x32) -> m1x32[src]
pub fn ne(self, other: m1x32) -> m1x32Lane-wise inequality comparison.
pub fn lt(self, other: m1x32) -> m1x32[src]
pub fn lt(self, other: m1x32) -> m1x32Lane-wise less-than comparison.
pub fn le(self, other: m1x32) -> m1x32[src]
pub fn le(self, other: m1x32) -> m1x32Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: m1x32) -> m1x32[src]
pub fn gt(self, other: m1x32) -> m1x32Lane-wise greater-than comparison.
pub fn ge(self, other: m1x32) -> m1x32[src]
pub fn ge(self, other: m1x32) -> m1x32Lane-wise greater-than-or-equals comparison.
Trait Implementations
impl FromBits<m1x32> for i32x16[src]
impl FromBits<m1x32> for i32x16impl FromBits<m1x32> for i64x8[src]
impl FromBits<m1x32> for i64x8impl FromBits<m1x32> for i8x64[src]
impl FromBits<m1x32> for i8x64impl FromBits<m1x32> for u8x64[src]
impl FromBits<m1x32> for u8x64impl FromBits<m1x32> for u32x16[src]
impl FromBits<m1x32> for u32x16impl FromBits<m1x32> for f64x8[src]
impl FromBits<m1x32> for f64x8impl FromBits<m1x32> for u16x32[src]
impl FromBits<m1x32> for u16x32impl FromBits<m1x32> for f32x16[src]
impl FromBits<m1x32> for f32x16impl FromBits<m1x32> for i16x32[src]
impl FromBits<m1x32> for i16x32impl FromBits<m1x32> for u64x8[src]
impl FromBits<m1x32> for u64x8impl PartialEq<m1x32> for m1x32[src]
impl PartialEq<m1x32> for m1x32fn eq(&self, other: &m1x32) -> bool[src]
fn eq(&self, other: &m1x32) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &m1x32) -> bool[src]
fn ne(&self, other: &m1x32) -> boolThis method tests for !=.
impl Not for m1x32[src]
impl Not for m1x32type Output = m1x32
The resulting type after applying the ! operator.
fn not(self) -> m1x32[src]
fn not(self) -> m1x32Performs the unary ! operation.
impl PartialOrd<m1x32> for m1x32[src]
impl PartialOrd<m1x32> for m1x32fn partial_cmp(&self, other: &m1x32) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &m1x32) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &m1x32) -> bool[src]
fn lt(&self, other: &m1x32) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &m1x32) -> bool[src]
fn le(&self, other: &m1x32) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &m1x32) -> bool[src]
fn gt(&self, other: &m1x32) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &m1x32) -> bool[src]
fn ge(&self, other: &m1x32) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl BitOr<m1x32> for bool[src]
impl BitOr<m1x32> for booltype Output = m1x32
The resulting type after applying the | operator.
fn bitor(self, other: m1x32) -> m1x32[src]
fn bitor(self, other: m1x32) -> m1x32Performs the | operation.
impl BitOr<m1x32> for m1x32[src]
impl BitOr<m1x32> for m1x32type Output = m1x32
The resulting type after applying the | operator.
fn bitor(self, other: m1x32) -> m1x32[src]
fn bitor(self, other: m1x32) -> m1x32Performs the | operation.
impl BitOr<bool> for m1x32[src]
impl BitOr<bool> for m1x32type Output = m1x32
The resulting type after applying the | operator.
fn bitor(self, other: bool) -> m1x32[src]
fn bitor(self, other: bool) -> m1x32Performs the | operation.
impl BitAndAssign<bool> for m1x32[src]
impl BitAndAssign<bool> for m1x32fn bitand_assign(&mut self, other: bool)[src]
fn bitand_assign(&mut self, other: bool)Performs the &= operation.
impl BitAndAssign<m1x32> for m1x32[src]
impl BitAndAssign<m1x32> for m1x32fn bitand_assign(&mut self, other: m1x32)[src]
fn bitand_assign(&mut self, other: m1x32)Performs the &= operation.
impl Debug for m1x32[src]
impl Debug for m1x32fn 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 BitXorAssign<m1x32> for m1x32[src]
impl BitXorAssign<m1x32> for m1x32fn bitxor_assign(&mut self, other: m1x32)[src]
fn bitxor_assign(&mut self, other: m1x32)Performs the ^= operation.
impl BitXorAssign<bool> for m1x32[src]
impl BitXorAssign<bool> for m1x32fn bitxor_assign(&mut self, other: bool)[src]
fn bitxor_assign(&mut self, other: bool)Performs the ^= operation.
impl BitAnd<m1x32> for m1x32[src]
impl BitAnd<m1x32> for m1x32type Output = m1x32
The resulting type after applying the & operator.
fn bitand(self, other: m1x32) -> m1x32[src]
fn bitand(self, other: m1x32) -> m1x32Performs the & operation.
impl BitAnd<bool> for m1x32[src]
impl BitAnd<bool> for m1x32type Output = m1x32
The resulting type after applying the & operator.
fn bitand(self, other: bool) -> m1x32[src]
fn bitand(self, other: bool) -> m1x32Performs the & operation.
impl BitAnd<m1x32> for bool[src]
impl BitAnd<m1x32> for booltype Output = m1x32
The resulting type after applying the & operator.
fn bitand(self, other: m1x32) -> m1x32[src]
fn bitand(self, other: m1x32) -> m1x32Performs the & operation.
impl Eq for m1x32[src]
impl Eq for m1x32impl BitXor<bool> for m1x32[src]
impl BitXor<bool> for m1x32type Output = m1x32
The resulting type after applying the ^ operator.
fn bitxor(self, other: bool) -> m1x32[src]
fn bitxor(self, other: bool) -> m1x32Performs the ^ operation.
impl BitXor<m1x32> for bool[src]
impl BitXor<m1x32> for booltype Output = m1x32
The resulting type after applying the ^ operator.
fn bitxor(self, other: m1x32) -> m1x32[src]
fn bitxor(self, other: m1x32) -> m1x32Performs the ^ operation.
impl BitXor<m1x32> for m1x32[src]
impl BitXor<m1x32> for m1x32type Output = m1x32
The resulting type after applying the ^ operator.
fn bitxor(self, other: m1x32) -> m1x32[src]
fn bitxor(self, other: m1x32) -> m1x32Performs the ^ operation.
impl Clone for m1x32[src]
impl Clone for m1x32fn clone(&self) -> m1x32[src]
fn clone(&self) -> m1x32Returns 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 From<m8x32> for m1x32[src]
impl From<m8x32> for m1x32impl From<m1x32> for u16x32[src]
impl From<m1x32> for u16x32impl From<m1x32> for m8x32[src]
impl From<m1x32> for m8x32impl From<m1x32> for i16x32[src]
impl From<m1x32> for i16x32impl Copy for m1x32[src]
impl Copy for m1x32impl BitOrAssign<bool> for m1x32[src]
impl BitOrAssign<bool> for m1x32fn bitor_assign(&mut self, other: bool)[src]
fn bitor_assign(&mut self, other: bool)Performs the |= operation.
impl BitOrAssign<m1x32> for m1x32[src]
impl BitOrAssign<m1x32> for m1x32fn bitor_assign(&mut self, other: m1x32)[src]
fn bitor_assign(&mut self, other: m1x32)Performs the |= operation.
impl Default for m1x32[src]
impl Default for m1x32