Skip to main content

u32x8

Struct u32x8 

Source
pub struct u32x8 { /* private fields */ }
Expand description

A SIMD vector containing 8 u32s.

Implementations§

Source§

impl u32x8

Source

pub const ONE: u32x8

Source

pub const ZERO: u32x8

Source

pub const MAX: u32x8

Source

pub const MIN: u32x8

Source

pub const LANES: u16 = 8

The number of lanes in this SIMD vector.

Source

pub const BITS: u16 = 256

The size of this SIMD vector in bits.

Source§

impl u32x8

Source

pub const fn new(array: [u32; 8]) -> u32x8

Source

pub fn simd_eq<Rhs>(self, other: Rhs) -> <u32x8 as CmpEq<Rhs>>::Output
where u32x8: CmpEq<Rhs>,

Test if each element is equal to the corresponding element in other.

Source

pub fn simd_ne<Rhs>(self, other: Rhs) -> <u32x8 as CmpNe<Rhs>>::Output
where u32x8: CmpNe<Rhs>,

Test if each element is not equal to the corresponding element in other.

Source

pub fn simd_lt<Rhs>(self, other: Rhs) -> <u32x8 as CmpLt<Rhs>>::Output
where u32x8: CmpLt<Rhs>,

Test if each element is less than the corresponding element in other.

Source

pub fn simd_gt<Rhs>(self, other: Rhs) -> <u32x8 as CmpGt<Rhs>>::Output
where u32x8: CmpGt<Rhs>,

Test if each element is greater than the corresponding element in other.

Source

pub fn simd_le<Rhs>(self, other: Rhs) -> <u32x8 as CmpLe<Rhs>>::Output
where u32x8: CmpLe<Rhs>,

Test if each element is less than or equal to the corresponding element in other.

Source

pub fn simd_ge<Rhs>(self, other: Rhs) -> <u32x8 as CmpGe<Rhs>>::Output
where u32x8: CmpGe<Rhs>,

Test if each element is greater than or equal to the corresponding element in other.

Source

pub fn mul_keep_high(self, rhs: u32x8) -> u32x8

Multiplies 32x32 bit to 64 bit and then only keeps the high 32 bits of the result. Useful for implementing divide constant value (see t_usefulness example)

Source

pub fn blend(self, t: u32x8, f: u32x8) -> u32x8

Source

pub fn reduce_add(self) -> u32

Source

pub fn reduce_max(self) -> u32

Source

pub fn reduce_min(self) -> u32

Source

pub fn max(self, rhs: u32x8) -> u32x8

Source

pub fn min(self, rhs: u32x8) -> u32x8

Source

pub fn clamp(self, min: u32x8, max: u32x8) -> u32x8

Restrict each element to a certain interval.

If min > max, the result is unspeficied. Consider manually checking for that case.

Source

pub fn saturating_add(self, rhs: u32x8) -> u32x8

Source

pub fn saturating_sub(self, rhs: u32x8) -> u32x8

Source

pub fn saturating_mul(self, rhs: u32x8) -> u32x8

Lanewise saturating multiply.

Source

pub fn saturating_div(self, rhs: u32x8) -> u32x8

Lanewise saturating divide.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source

pub fn to_bitmask(self) -> u32

Source

pub fn any(self) -> bool

Source

pub fn all(self) -> bool

Source

pub fn none(self) -> bool

Source

pub fn transpose(data: [u32x8; 8]) -> [u32x8; 8]

Transpose matrix of 8x8 u32 matrix. Currently only accelerated on AVX2.

Source

pub fn to_array(self) -> [u32; 8]

Source

pub fn as_array(&self) -> &[u32; 8]

Source

pub fn as_mut_array(&mut self) -> &mut [u32; 8]

Source§

impl u32x8

Source

pub const fn splat(elem: u32) -> u32x8

Trait Implementations§

Source§

impl Add for u32x8

Source§

type Output = u32x8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32x8) -> <u32x8 as Add>::Output

Performs the + operation. Read more
Source§

impl Add<&u32x8> for u32x8

Source§

type Output = u32x8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u32x8) -> <u32x8 as Add<&u32x8>>::Output

Performs the + operation. Read more
Source§

impl Add<u32> for u32x8

Source§

fn add(self, rhs: u32) -> <u32x8 as Add<u32>>::Output

Adds a scalar u32 to each element of the vector.

§Examples
let vec = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let result = vec + 10;
assert_eq!(result.to_array(), [11, 12, 13, 14, 15, 16, 17, 18]);
Source§

type Output = u32x8

The resulting type after applying the + operator.
Source§

impl Add<u32x8> for u32

Source§

type Output = u32x8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u32x8) -> <u32 as Add<u32x8>>::Output

Performs the + operation. Read more
Source§

impl AddAssign for u32x8

Source§

fn add_assign(&mut self, rhs: u32x8)

Performs the += operation. Read more
Source§

impl AddAssign<&u32x8> for u32x8

Source§

fn add_assign(&mut self, rhs: &u32x8)

Performs the += operation. Read more
Source§

impl AlignTo for u32x8

Source§

type Elem = u32

Source§

fn simd_align_to( slice: &[Self::Elem], ) -> (&[Self::Elem], &[Self], &[Self::Elem])

Source§

fn simd_align_to_mut( slice: &mut [Self::Elem], ) -> (&mut [Self::Elem], &mut [Self], &mut [Self::Elem])

Source§

impl Binary for u32x8

Source§

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

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

impl BitAnd for u32x8

Source§

type Output = u32x8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32x8) -> <u32x8 as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitAnd<&u32x8> for u32x8

Source§

type Output = u32x8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u32x8) -> <u32x8 as BitAnd<&u32x8>>::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for u32x8

Source§

fn bitand_assign(&mut self, rhs: u32x8)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u32x8> for u32x8

Source§

fn bitand_assign(&mut self, rhs: &u32x8)

Performs the &= operation. Read more
Source§

impl BitOr for u32x8

Source§

type Output = u32x8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32x8) -> <u32x8 as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOr<&u32x8> for u32x8

Source§

type Output = u32x8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u32x8) -> <u32x8 as BitOr<&u32x8>>::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for u32x8

Source§

fn bitor_assign(&mut self, rhs: u32x8)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u32x8> for u32x8

Source§

fn bitor_assign(&mut self, rhs: &u32x8)

Performs the |= operation. Read more
Source§

impl BitXor for u32x8

Source§

type Output = u32x8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32x8) -> <u32x8 as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&u32x8> for u32x8

Source§

type Output = u32x8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u32x8) -> <u32x8 as BitXor<&u32x8>>::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for u32x8

Source§

fn bitxor_assign(&mut self, rhs: u32x8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u32x8> for u32x8

Source§

fn bitxor_assign(&mut self, rhs: &u32x8)

Performs the ^= operation. Read more
Source§

impl Clone for u32x8

Source§

fn clone(&self) -> u32x8

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl CmpEq for u32x8

Source§

fn simd_eq(self, rhs: u32x8) -> <u32x8 as CmpEq>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Element-wise equality comparison.

Returns a mask where each element is all-ones (0xFFFFFFFF) if the corresponding elements are equal, or all-zeros (0x00000000) otherwise.

§Examples
let a = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let b = u32x8::from([1, 0, 3, 0, 5, 0, 7, 0]);
let mask = a.simd_eq(b);
let expected = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0, 0xFFFFFFFF, 0, 0xFFFFFFFF, 0];
assert_eq!(mask.to_array(), expected);
Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpEq<u32> for u32x8

Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

fn simd_eq(self, rhs: u32) -> <u32x8 as CmpEq<u32>>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpGe for u32x8

Source§

fn simd_ge(self, rhs: u32x8) -> <u32x8 as CmpGe>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Element-wise greater-than-or-equal comparison.

Returns a mask where each element is all-ones (0xFFFFFFFF) if the corresponding element in self is greater than or equal to the one in rhs, or all-zeros (0x00000000) otherwise.

§Examples
let a = u32x8::from([5, 4, 3, 2, 10, 9, 8, 7]);
let b = u32x8::from([5, 2, 3, 4, 5, 6, 8, 8]);
let mask = a.simd_ge(b);
let expected = [
  0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
  0,
];
assert_eq!(mask.to_array(), expected);
Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpGe<u32> for u32x8

Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

fn simd_ge(self, rhs: u32) -> <u32x8 as CmpGe<u32>>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpGt for u32x8

Source§

fn simd_gt(self, rhs: u32x8) -> <u32x8 as CmpGt>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Element-wise greater-than comparison.

Returns a mask where each element is all-ones (0xFFFFFFFF) if the corresponding element in self is greater than the one in rhs, or all-zeros (0x00000000) otherwise.

§Examples
let a = u32x8::from([5, 4, 3, 2, 10, 9, 8, 7]);
let b = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let mask = a.simd_gt(b);
let expected =
  [0xFFFFFFFF, 0xFFFFFFFF, 0, 0, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0];
assert_eq!(mask.to_array(), expected);
Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpGt<u32> for u32x8

Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

fn simd_gt(self, rhs: u32) -> <u32x8 as CmpGt<u32>>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpLe for u32x8

Source§

fn simd_le(self, rhs: u32x8) -> <u32x8 as CmpLe>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Element-wise less-than-or-equal comparison.

Returns a mask where each element is all-ones (0xFFFFFFFF) if the corresponding element in self is less than or equal to the one in rhs, or all-zeros (0x00000000) otherwise.

§Examples
let a = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let b = u32x8::from([1, 4, 3, 2, 10, 9, 7, 7]);
let mask = a.simd_le(b);
let expected = [
  0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF,
  0,
];
assert_eq!(mask.to_array(), expected);
Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpLe<u32> for u32x8

Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

fn simd_le(self, rhs: u32) -> <u32x8 as CmpLe<u32>>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpLt for u32x8

Source§

fn simd_lt(self, rhs: u32x8) -> <u32x8 as CmpLt>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Element-wise less-than comparison.

Returns a mask where each element is all-ones (0xFFFFFFFF) if the corresponding element in self is less than the one in rhs, or all-zeros (0x00000000) otherwise.

§Examples
let a = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let b = u32x8::from([5, 4, 3, 2, 10, 9, 8, 7]);
let mask = a.simd_lt(b);
let expected =
  [0xFFFFFFFF, 0xFFFFFFFF, 0, 0, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0];
assert_eq!(mask.to_array(), expected);
Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpLt<u32> for u32x8

Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

fn simd_lt(self, rhs: u32) -> <u32x8 as CmpLt<u32>>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpNe for u32x8

Source§

fn simd_ne(self, rhs: u32x8) -> <u32x8 as CmpNe>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Element-wise not-equal comparison.

Returns a mask where each element is all-ones (0xFFFFFFFF) if the corresponding elements are not equal, or all-zeros (0x00000000) otherwise.

§Examples
let a = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let b = u32x8::from([1, 0, 3, 0, 5, 0, 7, 0]);
let mask = a.simd_ne(b);
let expected = [0, 0xFFFFFFFF, 0, 0xFFFFFFFF, 0, 0xFFFFFFFF, 0, 0xFFFFFFFF];
assert_eq!(mask.to_array(), expected);
Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl CmpNe<u32> for u32x8

Source§

type Output = u32x8

👎Deprecated since 1.5.0:

use inherit function instead

Source§

fn simd_ne(self, rhs: u32) -> <u32x8 as CmpNe<u32>>::Output

👎Deprecated since 1.5.0:

use inherit function instead

Source§

impl Copy for u32x8

Source§

impl Debug for u32x8

Source§

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

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

impl Default for u32x8

Source§

fn default() -> u32x8

Returns the “default value” for a type. Read more
Source§

impl Display for u32x8

Source§

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

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

impl Div for u32x8

Source§

fn div(self, rhs: u32x8) -> <u32x8 as Div>::Output

Lanewise divide.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source§

type Output = u32x8

The resulting type after applying the / operator.
Source§

impl Div<u32> for u32x8

Source§

fn div(self, rhs: u32) -> <u32x8 as Div<u32>>::Output

Lanewise divide.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source§

type Output = u32x8

The resulting type after applying the / operator.
Source§

impl Div<u32x8> for u32

Source§

fn div(self, rhs: u32x8) -> <u32 as Div<u32x8>>::Output

Lanewise divide.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source§

type Output = u32x8

The resulting type after applying the / operator.
Source§

impl Eq for u32x8

Source§

impl From<&[u32]> for u32x8

Source§

fn from(src: &[u32]) -> u32x8

Converts to this type from the input type.
Source§

impl From<[u32; 8]> for u32x8

Source§

fn from(arr: [u32; 8]) -> u32x8

Converts to this type from the input type.
Source§

impl From<u16x8> for u32x8

Source§

fn from(v: u16x8) -> u32x8

widens and zero extends to u32x8

Source§

impl From<u32> for u32x8

Source§

fn from(elem: u32) -> u32x8

Splats the single value given across all lanes.

Source§

impl From<u32x8> for [u32; 8]

Source§

fn from(simd: u32x8) -> [u32; 8]

Converts to this type from the input type.
Source§

impl LowerExp for u32x8

Source§

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

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

impl LowerHex for u32x8

Source§

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

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

impl Mul for u32x8

Source§

type Output = u32x8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u32x8) -> <u32x8 as Mul>::Output

Performs the * operation. Read more
Source§

impl Mul<u32> for u32x8

Source§

fn mul(self, rhs: u32) -> <u32x8 as Mul<u32>>::Output

Multiplies each element of the vector by a scalar u32.

§Examples
let vec = u32x8::from([1, 2, 3, 4, 5, 6, 7, 8]);
let result = vec * 3;
assert_eq!(result.to_array(), [3, 6, 9, 12, 15, 18, 21, 24]);
Source§

type Output = u32x8

The resulting type after applying the * operator.
Source§

impl Neg for u32x8

Source§

type Output = u32x8

The resulting type after applying the - operator.
Source§

fn neg(self) -> <u32x8 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for &u32x8

Source§

type Output = u32x8

The resulting type after applying the - operator.
Source§

fn neg(self) -> <&u32x8 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Not for u32x8

Source§

type Output = u32x8

The resulting type after applying the ! operator.
Source§

fn not(self) -> u32x8

Performs the unary ! operation. Read more
Source§

impl Not for &u32x8

Source§

type Output = u32x8

The resulting type after applying the ! operator.
Source§

fn not(self) -> <&u32x8 as Not>::Output

Performs the unary ! operation. Read more
Source§

impl Octal for u32x8

Source§

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

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

impl PartialEq for u32x8

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Pod for u32x8

Source§

impl Rem for u32x8

Source§

fn rem(self, rhs: u32x8) -> <u32x8 as Rem>::Output

Lanewise remainder.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source§

type Output = u32x8

The resulting type after applying the % operator.
Source§

impl Rem<u32> for u32x8

Source§

fn rem(self, rhs: u32) -> <u32x8 as Rem<u32>>::Output

Lanewise remainder.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source§

type Output = u32x8

The resulting type after applying the % operator.
Source§

impl Rem<u32x8> for u32

Source§

fn rem(self, rhs: u32x8) -> <u32 as Rem<u32x8>>::Output

Lanewise remainder.

Note that because division has no hardware support, this operation is very slow and should be avoided if possible.

Source§

type Output = u32x8

The resulting type after applying the % operator.
Source§

impl Shl for u32x8

Shifts lanes by the corresponding lane.

Bitwise shift-left; yields self << mask(rhs), where mask removes any high-order bits of rhs that would cause the shift to exceed the bitwidth of the type. (same as wrapping_shl)

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32x8) -> <u32x8 as Shl>::Output

Performs the << operation. Read more
Source§

impl Shl<i8> for u32x8

Source§

fn shl(self, rhs: i8) -> <u32x8 as Shl<i8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<i16> for u32x8

Source§

fn shl(self, rhs: i16) -> <u32x8 as Shl<i16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<i32> for u32x8

Source§

fn shl(self, rhs: i32) -> <u32x8 as Shl<i32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<i64> for u32x8

Source§

fn shl(self, rhs: i64) -> <u32x8 as Shl<i64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<i128> for u32x8

Source§

fn shl(self, rhs: i128) -> <u32x8 as Shl<i128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<u8> for u32x8

Source§

fn shl(self, rhs: u8) -> <u32x8 as Shl<u8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<u16> for u32x8

Source§

fn shl(self, rhs: u16) -> <u32x8 as Shl<u16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<u32> for u32x8

Source§

fn shl(self, rhs: u32) -> <u32x8 as Shl<u32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<u64> for u32x8

Source§

fn shl(self, rhs: u64) -> <u32x8 as Shl<u64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shl<u128> for u32x8

Source§

fn shl(self, rhs: u128) -> <u32x8 as Shl<u128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the << operator.
Source§

impl Shr for u32x8

Shifts lanes by the corresponding lane.

Bitwise shift-right; yields self >> mask(rhs), where mask removes any high-order bits of rhs that would cause the shift to exceed the bitwidth of the type. (same as wrapping_shr)

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32x8) -> <u32x8 as Shr>::Output

Performs the >> operation. Read more
Source§

impl Shr<i8> for u32x8

Source§

fn shr(self, rhs: i8) -> <u32x8 as Shr<i8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<i16> for u32x8

Source§

fn shr(self, rhs: i16) -> <u32x8 as Shr<i16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<i32> for u32x8

Source§

fn shr(self, rhs: i32) -> <u32x8 as Shr<i32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<i64> for u32x8

Source§

fn shr(self, rhs: i64) -> <u32x8 as Shr<i64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<i128> for u32x8

Source§

fn shr(self, rhs: i128) -> <u32x8 as Shr<i128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<u8> for u32x8

Source§

fn shr(self, rhs: u8) -> <u32x8 as Shr<u8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<u16> for u32x8

Source§

fn shr(self, rhs: u16) -> <u32x8 as Shr<u16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<u32> for u32x8

Source§

fn shr(self, rhs: u32) -> <u32x8 as Shr<u32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<u64> for u32x8

Source§

fn shr(self, rhs: u64) -> <u32x8 as Shr<u64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl Shr<u128> for u32x8

Source§

fn shr(self, rhs: u128) -> <u32x8 as Shr<u128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u32x8

The resulting type after applying the >> operator.
Source§

impl StructuralPartialEq for u32x8

Source§

impl Sub for u32x8

Source§

type Output = u32x8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32x8) -> <u32x8 as Sub>::Output

Performs the - operation. Read more
Source§

impl Sub<&u32x8> for u32x8

Source§

type Output = u32x8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u32x8) -> <u32x8 as Sub<&u32x8>>::Output

Performs the - operation. Read more
Source§

impl Sub<u32> for u32x8

Source§

fn sub(self, rhs: u32) -> <u32x8 as Sub<u32>>::Output

Subtracts a scalar u32 from each element of the vector.

§Examples
let vec = u32x8::from([10, 20, 30, 40, 50, 60, 70, 80]);
let result = vec - 5;
assert_eq!(result.to_array(), [5, 15, 25, 35, 45, 55, 65, 75]);
Source§

type Output = u32x8

The resulting type after applying the - operator.
Source§

impl Sub<u32x8> for u32

Source§

type Output = u32x8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u32x8) -> <u32 as Sub<u32x8>>::Output

Performs the - operation. Read more
Source§

impl SubAssign for u32x8

Source§

fn sub_assign(&mut self, rhs: u32x8)

Performs the -= operation. Read more
Source§

impl SubAssign<&u32x8> for u32x8

Source§

fn sub_assign(&mut self, rhs: &u32x8)

Performs the -= operation. Read more
Source§

impl<RHS> Sum<RHS> for u32x8
where u32x8: AddAssign<RHS>,

Source§

fn sum<I>(iter: I) -> u32x8
where I: Iterator<Item = RHS>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl UpperExp for u32x8

Source§

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

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

impl UpperHex for u32x8

Source§

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

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

impl Zeroable for u32x8

Source§

fn zeroed() -> Self

Auto Trait Implementations§

§

impl Freeze for u32x8

§

impl RefUnwindSafe for u32x8

§

impl Send for u32x8

§

impl Sync for u32x8

§

impl Unpin for u32x8

§

impl UnsafeUnpin for u32x8

§

impl UnwindSafe for u32x8

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> NoUninit for T
where T: Pod,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.