Struct wide::u16x16

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

Implementations§

source§

impl u16x16

source

pub const ONE: u16x16 = _

source

pub const ZERO: u16x16 = _

source

pub const MAX: u16x16 = _

source

pub const MIN: u16x16 = _

source

pub const LANES: u16 = 16u16

The number of lanes in this SIMD vector.

source

pub const BITS: u16 = 256u16

The size of this SIMD vector in bits.

source§

impl u16x16

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source§

impl u16x16

source

pub fn splat(elem: u16) -> u16x16

Trait Implementations§

source§

impl Add<&u16x16> for u16x16

source§

type Output = u16x16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u16> for u16x16

source§

type Output = u16x16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<u16x16> for u16

source§

type Output = u16x16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for u16x16

source§

type Output = u16x16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<&u16x16> for u16x16

source§

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

Performs the += operation. Read more
source§

impl AddAssign for u16x16

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Binary for u16x16

source§

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

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

impl BitAnd<&u16x16> for u16x16

source§

type Output = u16x16

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAnd for u16x16

source§

type Output = u16x16

The resulting type after applying the & operator.
source§

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

Performs the & operation. Read more
source§

impl BitAndAssign<&u16x16> for u16x16

source§

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

Performs the &= operation. Read more
source§

impl BitAndAssign for u16x16

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr<&u16x16> for u16x16

source§

type Output = u16x16

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOr for u16x16

source§

type Output = u16x16

The resulting type after applying the | operator.
source§

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

Performs the | operation. Read more
source§

impl BitOrAssign<&u16x16> for u16x16

source§

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

Performs the |= operation. Read more
source§

impl BitOrAssign for u16x16

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor<&u16x16> for u16x16

source§

type Output = u16x16

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXor for u16x16

source§

type Output = u16x16

The resulting type after applying the ^ operator.
source§

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

Performs the ^ operation. Read more
source§

impl BitXorAssign<&u16x16> for u16x16

source§

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

Performs the ^= operation. Read more
source§

impl BitXorAssign for u16x16

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for u16x16

source§

fn clone(&self) -> u16x16

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 u16x16

source§

type Output = u16x16

source§

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

source§

impl Debug for u16x16

source§

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

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

impl Default for u16x16

source§

fn default() -> u16x16

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

impl Display for u16x16

source§

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

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

impl From<&[u16]> for u16x16

source§

fn from(src: &[u16]) -> u16x16

Converts to this type from the input type.
source§

impl From<[u16; 16]> for u16x16

source§

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

Converts to this type from the input type.
source§

impl From<u16> for u16x16

source§

fn from(elem: u16) -> Self

Splats the single value given across all lanes.

source§

impl From<u16x16> for [u16; 16]

source§

fn from(simd: u16x16) -> Self

Converts to this type from the input type.
source§

impl From<u8x16> for u16x16

source§

fn from(v: u8x16) -> Self

widens and sign extends to u16x16

source§

impl LowerExp for u16x16

source§

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

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

impl LowerHex for u16x16

source§

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

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

impl Mul<&u16x16> for u16x16

source§

type Output = u16x16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for u16x16

source§

type Output = u16x16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<&u16x16> for u16x16

source§

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

Performs the *= operation. Read more
source§

impl MulAssign for u16x16

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Not for &u16x16

source§

type Output = u16x16

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Not for u16x16

source§

type Output = u16x16

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Octal for u16x16

source§

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

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

impl PartialEq for u16x16

source§

fn eq(&self, other: &u16x16) -> 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 Shl<i128> for u16x16

source§

fn shl(self, rhs: i128) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<i16> for u16x16

source§

fn shl(self, rhs: i16) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<i32> for u16x16

source§

fn shl(self, rhs: i32) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<i64> for u16x16

source§

fn shl(self, rhs: i64) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<i8> for u16x16

source§

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

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<u128> for u16x16

source§

fn shl(self, rhs: u128) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<u16> for u16x16

source§

fn shl(self, rhs: u16) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<u32> for u16x16

source§

fn shl(self, rhs: u32) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<u64> for u16x16

source§

fn shl(self, rhs: u64) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shl<u8> for u16x16

source§

fn shl(self, rhs: u8) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<i128> for u16x16

source§

fn shr(self, rhs: i128) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<i16> for u16x16

source§

fn shr(self, rhs: i16) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<i32> for u16x16

source§

fn shr(self, rhs: i32) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<i64> for u16x16

source§

fn shr(self, rhs: i64) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<i8> for u16x16

source§

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

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<u128> for u16x16

source§

fn shr(self, rhs: u128) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<u16> for u16x16

source§

fn shr(self, rhs: u16) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<u32> for u16x16

source§

fn shr(self, rhs: u32) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<u64> for u16x16

source§

fn shr(self, rhs: u64) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Shr<u8> for u16x16

source§

fn shr(self, rhs: u8) -> Self::Output

Shifts all lanes by the value given.

source§

type Output = u16x16

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

impl Sub<&u16x16> for u16x16

source§

type Output = u16x16

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u16> for u16x16

source§

type Output = u16x16

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<u16x16> for u16

source§

type Output = u16x16

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for u16x16

source§

type Output = u16x16

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<&u16x16> for u16x16

source§

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

Performs the -= operation. Read more
source§

impl SubAssign for u16x16

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl<RHS> Sum<RHS> for u16x16
where u16x16: 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 u16x16

source§

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

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

impl UpperHex for u16x16

source§

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

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

impl Zeroable for u16x16

source§

fn zeroed() -> Self

source§

impl Copy for u16x16

source§

impl Eq for u16x16

source§

impl Pod for u16x16

source§

impl StructuralPartialEq for u16x16

Auto Trait Implementations§

§

impl Freeze for u16x16

§

impl RefUnwindSafe for u16x16

§

impl Send for u16x16

§

impl Sync for u16x16

§

impl Unpin for u16x16

§

impl UnwindSafe for u16x16

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,