# Struct core::simd::m32x4[−][src]

    #[repr(simd)]
    pub struct m32x4(_, _, _, _);

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

A 128-bit vector mask with 4 lanes.

## Methods

###

`impl m32x4`

[src]

####

`pub const fn new(x0: bool, x1: bool, x2: bool, x3: bool) -> Self`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Creates a new instance with each vector elements initialized with the provided values.

####

`pub const fn lanes() -> usize`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Returns the number of vector lanes.

####

`pub const fn splat(value: bool) -> Self`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Constructs a new instance with each element initialized to `value`.

####

`pub fn extract(self, index: usize) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Extracts the value at `index`.

# Panics

If `index >= Self::lanes()`.

####

`pub unsafe fn extract_unchecked(self, index: usize) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Extracts 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) -> Self`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

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]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Returns a new vector where the value at `index` is replaced by `new_value`.

# Panics

If `index >= Self::lanes()`.

###

`impl m32x4`

[src]

####

`pub fn and(self) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise bitwise `and` of the vector elements.

####

`pub fn or(self) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise bitwise `or` of the vector elements.

####

`pub fn xor(self) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise bitwise `xor` of the vector elements.

###

`impl m32x4`

[src]

####

`pub fn all(self) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Are `all` vector lanes `true`?

####

`pub fn any(self) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Is `any` vector lanes `true`?

####

`pub fn none(self) -> bool`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Are `all` vector lanes `false`?

###

`impl m32x4`

[src]

####

`pub fn select<T>(self, a: T, b: T) -> T where T: Lanes<[u32; 4]>,`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

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 m32x4`

[src]

####

`pub fn eq(self, other: m32x4) -> m32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise equality comparison.

####

`pub fn ne(self, other: m32x4) -> m32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise inequality comparison.

####

`pub fn lt(self, other: m32x4) -> m32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise less-than comparison.

####

`pub fn le(self, other: m32x4) -> m32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise less-than-or-equals comparison.

####

`pub fn gt(self, other: m32x4) -> m32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise greater-than comparison.

####

`pub fn ge(self, other: m32x4) -> m32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Lane-wise greater-than-or-equals comparison.

## Trait Implementations

###

`impl Copy for m32x4`

[src]

###

`impl Clone for m32x4`

[src]

####

`fn clone(&self) -> m32x4`

[src]

Returns a copy of the value. Read more

####

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

1.0.0
[src]

Performs copy-assignment from `source`. Read more

###

`impl Debug for m32x4`

[src]

####

`fn fmt(&self, f: &mut Formatter) -> Result`

[src]

Formats the value using the given formatter. Read more

###

`impl PartialOrd for m32x4`

[src]

####

`fn partial_cmp(&self, other: &m32x4) -> Option<Ordering>`

[src]

This method returns an ordering between `self` and `other` values if one exists. Read more

####

`fn lt(&self, other: &m32x4) -> bool`

[src]

This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more

####

`fn le(&self, other: &m32x4) -> bool`

[src]

This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more

####

`fn gt(&self, other: &m32x4) -> bool`

[src]

This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more

####

`fn ge(&self, other: &m32x4) -> bool`

[src]

This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. Read more

###

`impl Not for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `!` operator.

####

`fn not(self) -> Self`

[src]

Performs the unary `!` operation.

###

`impl BitXor for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `^` operator.

####

`fn bitxor(self, other: Self) -> Self`

[src]

Performs the `^` operation.

###

`impl BitAnd for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `&` operator.

####

`fn bitand(self, other: Self) -> Self`

[src]

Performs the `&` operation.

###

`impl BitOr for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `|` operator.

####

`fn bitor(self, other: Self) -> Self`

[src]

Performs the `|` operation.

###

`impl BitAndAssign for m32x4`

[src]

####

`fn bitand_assign(&mut self, other: Self)`

[src]

Performs the `&=` operation.

###

`impl BitOrAssign for m32x4`

[src]

####

`fn bitor_assign(&mut self, other: Self)`

[src]

Performs the `|=` operation.

###

`impl BitXorAssign for m32x4`

[src]

####

`fn bitxor_assign(&mut self, other: Self)`

[src]

Performs the `^=` operation.

###

`impl BitXor<bool> for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `^` operator.

####

`fn bitxor(self, other: bool) -> Self`

[src]

Performs the `^` operation.

###

`impl BitXor<m32x4> for bool`

[src]

#### `type Output = m32x4`

The resulting type after applying the `^` operator.

####

`fn bitxor(self, other: m32x4) -> m32x4`

[src]

Performs the `^` operation.

###

`impl BitAnd<bool> for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `&` operator.

####

`fn bitand(self, other: bool) -> Self`

[src]

Performs the `&` operation.

###

`impl BitAnd<m32x4> for bool`

[src]

#### `type Output = m32x4`

The resulting type after applying the `&` operator.

####

`fn bitand(self, other: m32x4) -> m32x4`

[src]

Performs the `&` operation.

###

`impl BitOr<bool> for m32x4`

[src]

#### `type Output = Self`

The resulting type after applying the `|` operator.

####

`fn bitor(self, other: bool) -> Self`

[src]

Performs the `|` operation.

###

`impl BitOr<m32x4> for bool`

[src]

#### `type Output = m32x4`

The resulting type after applying the `|` operator.

####

`fn bitor(self, other: m32x4) -> m32x4`

[src]

Performs the `|` operation.

###

`impl BitAndAssign<bool> for m32x4`

[src]

####

`fn bitand_assign(&mut self, other: bool)`

[src]

Performs the `&=` operation.

###

`impl BitOrAssign<bool> for m32x4`

[src]

####

`fn bitor_assign(&mut self, other: bool)`

[src]

Performs the `|=` operation.

###

`impl BitXorAssign<bool> for m32x4`

[src]

####

`fn bitxor_assign(&mut self, other: bool)`

[src]

Performs the `^=` operation.

###

`impl Eq for m32x4`

[src]

###

`impl PartialEq<m32x4> for m32x4`

[src]

####

`fn eq(&self, other: &Self) -> bool`

[src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

####

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

[src]

This method tests for `!=`.

###

`impl Default for m32x4`

[src]

####

`fn default() -> Self`

[src]

Returns the "default value" for a type. Read more

###

`impl FromBits<m32x4> for u64x2`

[src]

####

`fn from_bits(f: m32x4) -> u64x2`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for i64x2`

[src]

####

`fn from_bits(f: m32x4) -> i64x2`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for f64x2`

[src]

####

`fn from_bits(f: m32x4) -> f64x2`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for u32x4`

[src]

####

`fn from_bits(f: m32x4) -> u32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for i32x4`

[src]

####

`fn from_bits(f: m32x4) -> i32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for f32x4`

[src]

####

`fn from_bits(f: m32x4) -> f32x4`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for u16x8`

[src]

####

`fn from_bits(f: m32x4) -> u16x8`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for i16x8`

[src]

####

`fn from_bits(f: m32x4) -> i16x8`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for u8x16`

[src]

####

`fn from_bits(f: m32x4) -> u8x16`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for i8x16`

[src]

####

`fn from_bits(f: m32x4) -> i8x16`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl From<m32x4> for u32x4`

[src]

####

`fn from(f: m32x4) -> u32x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for i32x4`

[src]

####

`fn from(f: m32x4) -> i32x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for f32x4`

[src]

####

`fn from(f: m32x4) -> f32x4`

[src]

Performs the conversion.

###

`impl From<m64x4> for m32x4`

[src]

####

`fn from(f: m64x4) -> m32x4`

[src]

Performs the conversion.

###

`impl From<m16x4> for m32x4`

[src]

####

`fn from(f: m16x4) -> m32x4`

[src]

Performs the conversion.

###

`impl From<m8x4> for m32x4`

[src]

####

`fn from(f: m8x4) -> m32x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for f64x4`

[src]

####

`fn from(f: m32x4) -> f64x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for i64x4`

[src]

####

`fn from(f: m32x4) -> i64x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for u64x4`

[src]

####

`fn from(f: m32x4) -> u64x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for m64x4`

[src]

####

`fn from(f: m32x4) -> m64x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for i8x4`

[src]

####

`fn from(f: m32x4) -> i8x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for u8x4`

[src]

####

`fn from(f: m32x4) -> u8x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for m8x4`

[src]

####

`fn from(f: m32x4) -> m8x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for u16x4`

[src]

####

`fn from(f: m32x4) -> u16x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for i16x4`

[src]

####

`fn from(f: m32x4) -> i16x4`

[src]

Performs the conversion.

###

`impl From<m32x4> for m16x4`

[src]

####

`fn from(f: m32x4) -> m16x4`

[src]

Performs the conversion.

###

`impl FromBits<m32x4> for __m128`

[src]

####

`fn from_bits(f: m32x4) -> __m128`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for __m128i`

[src]

####

`fn from_bits(f: m32x4) -> __m128i`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for __m128d`

[src]

####

`fn from_bits(f: m32x4) -> __m128d`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for float64x2_t`

[src]

####

`fn from_bits(f: m32x4) -> float64x2_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for int8x16_t`

[src]

####

`fn from_bits(f: m32x4) -> int8x16_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for uint8x16_t`

[src]

####

`fn from_bits(f: m32x4) -> uint8x16_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for poly8x16_t`

[src]

####

`fn from_bits(f: m32x4) -> poly8x16_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for int16x8_t`

[src]

####

`fn from_bits(f: m32x4) -> int16x8_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for uint16x8_t`

[src]

####

`fn from_bits(f: m32x4) -> uint16x8_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for poly16x8_t`

[src]

####

`fn from_bits(f: m32x4) -> poly16x8_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for int32x4_t`

[src]

####

`fn from_bits(f: m32x4) -> int32x4_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for uint32x4_t`

[src]

####

`fn from_bits(f: m32x4) -> uint32x4_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for float32x4_t`

[src]

####

`fn from_bits(f: m32x4) -> float32x4_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for int64x2_t`

[src]

####

`fn from_bits(f: m32x4) -> int64x2_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

###

`impl FromBits<m32x4> for uint64x2_t`

[src]

####

`fn from_bits(f: m32x4) -> uint64x2_t`

[src]

🔬 This is a nightly-only experimental API. (`stdsimd` #48556)

Safe lossless bitwise from `T` to `Self`.

## Auto Trait Implementations

###

`impl Send for m32x4`

###

`impl Sync for m32x4`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)