Struct wide::i8x16

source ·
#[repr(C, align(16))]
pub struct i8x16 { /* private fields */ }

Implementations§

source§

impl i8x16

source

pub const ONE: i8x16 = _

source

pub const ZERO: i8x16 = _

source

pub const MAX: i8x16 = _

source

pub const MIN: i8x16 = _

source

pub const LANES: u16 = 16u16

The number of lanes in this SIMD vector.

source

pub const BITS: u16 = 128u16

The size of this SIMD vector in bits.

source§

impl i8x16

source

pub fn new(array: [i8; 16]) -> Self

source

pub fn from_i16x16_saturate(v: i16x16) -> i8x16

converts i16 to i8, saturating values that are too large

source

pub fn from_i16x16_truncate(v: i16x16) -> i8x16

converts i16 to i8, truncating the upper bits if they are set

source

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

source

pub fn abs(self) -> Self

source

pub fn unsigned_abs(self) -> u8x16

source

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

source

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

source

pub fn from_slice_unaligned(input: &[i8]) -> Self

source

pub fn move_mask(self) -> i32

source

pub fn any(self) -> bool

source

pub fn all(self) -> bool

source

pub fn swizzle(self, rhs: i8x16) -> i8x16

Returns a new vector where each element is based on the index values in rhs.

  • Index values in the range [0, 15] select the i-th element of self.
  • Index values that are out of range will cause that output lane to be 0.
source

pub fn swizzle_relaxed(self, rhs: i8x16) -> i8x16

Works like swizzle with the following additional details

  • Indices in the range [0, 15] will select the i-th element of self.
  • If the high bit of any index is set (meaning that the index is negative), then the corresponding output lane is guaranteed to be zero.
  • Otherwise the output lane is either 0 or self[rhs[i] % 16], depending on the implementation.
source

pub fn none(self) -> bool

source

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

source

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

source

pub fn to_array(self) -> [i8; 16]

source

pub fn as_array_ref(&self) -> &[i8; 16]

source

pub fn as_array_mut(&mut self) -> &mut [i8; 16]

source§

impl i8x16

source

pub fn splat(elem: i8) -> i8x16

Trait Implementations§

source§

impl Add<&i8x16> for i8x16

source§

type Output = i8x16

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Self) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for i8x16

source§

type Output = i8x16

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8x16> for i8

source§

type Output = i8x16

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8x16) -> Self::Output

Performs the + operation. Read more
source§

impl Add for i8x16

source§

type Output = i8x16

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<&i8x16> for i8x16

source§

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

Performs the += operation. Read more
source§

impl AddAssign for i8x16

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Binary for i8x16

source§

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

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

impl BitAnd<&i8x16> for i8x16

source§

type Output = i8x16

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAnd for i8x16

source§

type Output = i8x16

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign<&i8x16> for i8x16

source§

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

Performs the &= operation. Read more
source§

impl BitAndAssign for i8x16

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr<&i8x16> for i8x16

source§

type Output = i8x16

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOr for i8x16

source§

type Output = i8x16

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign<&i8x16> for i8x16

source§

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

Performs the |= operation. Read more
source§

impl BitOrAssign for i8x16

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor<&i8x16> for i8x16

source§

type Output = i8x16

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXor for i8x16

source§

type Output = i8x16

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign<&i8x16> for i8x16

source§

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

Performs the ^= operation. Read more
source§

impl BitXorAssign for i8x16

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for i8x16

source§

fn clone(&self) -> i8x16

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl CmpEq for i8x16

source§

type Output = i8x16

source§

fn cmp_eq(self, rhs: Self) -> Self::Output

source§

impl CmpGt for i8x16

source§

type Output = i8x16

source§

fn cmp_gt(self, rhs: Self) -> Self::Output

source§

impl CmpLt for i8x16

source§

type Output = i8x16

source§

fn cmp_lt(self, rhs: Self) -> Self::Output

source§

impl Debug for i8x16

source§

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

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

impl Default for i8x16

source§

fn default() -> i8x16

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

impl Display for i8x16

source§

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

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

impl From<&[i8]> for i8x16

source§

fn from(src: &[i8]) -> i8x16

Converts to this type from the input type.
source§

impl From<[i8; 16]> for i8x16

source§

fn from(arr: [i8; 16]) -> Self

Converts to this type from the input type.
source§

impl From<i8> for i8x16

source§

fn from(elem: i8) -> Self

Splats the single value given across all lanes.

source§

impl From<i8x16> for [i8; 16]

source§

fn from(simd: i8x16) -> Self

Converts to this type from the input type.
source§

impl From<i8x16> for i16x16

source§

fn from(i: i8x16) -> Self

widen with sign extend from i8 to i16

source§

impl LowerExp for i8x16

source§

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

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

impl LowerHex for i8x16

source§

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

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

impl Neg for &i8x16

source§

type Output = i8x16

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for i8x16

source§

type Output = i8x16

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Not for &i8x16

source§

type Output = i8x16

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Not for i8x16

source§

type Output = i8x16

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Octal for i8x16

source§

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

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

impl PartialEq for i8x16

source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Sub<&i8x16> for i8x16

source§

type Output = i8x16

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Self) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for i8x16

source§

type Output = i8x16

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8x16> for i8

source§

type Output = i8x16

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8x16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub for i8x16

source§

type Output = i8x16

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<&i8x16> for i8x16

source§

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

Performs the -= operation. Read more
source§

impl SubAssign for i8x16

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

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

source§

fn sum<I: Iterator<Item = RHS>>(iter: I) -> Self

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

impl UpperExp for i8x16

source§

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

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

impl UpperHex for i8x16

source§

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

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

impl Zeroable for i8x16

source§

fn zeroed() -> Self

source§

impl Copy for i8x16

source§

impl Eq for i8x16

source§

impl Pod for i8x16

source§

impl StructuralPartialEq for i8x16

Auto Trait Implementations§

§

impl Freeze for i8x16

§

impl RefUnwindSafe for i8x16

§

impl Send for i8x16

§

impl Sync for i8x16

§

impl Unpin for i8x16

§

impl UnwindSafe for i8x16

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> 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<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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
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> 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§

default 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.
source§

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

source§

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