Struct std::simd::u8x16
[−]
[src]
#[repr(simd)]pub struct u8x16(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);
A 128-bit vector with 16 u8 lanes.
Methods
impl u8x16[src]
impl u8x16pub const fn new(
x0: u8,
x1: u8,
x2: u8,
x3: u8,
x4: u8,
x5: u8,
x6: u8,
x7: u8,
x8: u8,
x9: u8,
x10: u8,
x11: u8,
x12: u8,
x13: u8,
x14: u8,
x15: u8
) -> u8x16[src]
pub const fn new(
x0: u8,
x1: u8,
x2: u8,
x3: u8,
x4: u8,
x5: u8,
x6: u8,
x7: u8,
x8: u8,
x9: u8,
x10: u8,
x11: u8,
x12: u8,
x13: u8,
x14: u8,
x15: u8
) -> u8x16Creates 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: u8) -> u8x16[src]
pub const fn splat(value: u8) -> u8x16Constructs a new instance with each element initialized to
value.
pub fn extract(self, index: usize) -> u8[src]
pub fn extract(self, index: usize) -> u8pub unsafe fn extract_unchecked(self, index: usize) -> u8[src]
pub unsafe fn extract_unchecked(self, index: usize) -> u8Extracts the value at index.
If index >= Self::lanes() the behavior is undefined.
pub fn replace(self, index: usize, new_value: u8) -> u8x16[src]
pub fn replace(self, index: usize, new_value: u8) -> u8x16Returns a new vector where the value at index is replaced by new_value.
Panics
If index >= Self::lanes().
pub unsafe fn replace_unchecked(self, index: usize, new_value: u8) -> u8x16[src]
pub unsafe fn replace_unchecked(self, index: usize, new_value: u8) -> u8x16Returns a new vector where the value at index is replaced by new_value.
Panics
If index >= Self::lanes().
impl u8x16[src]
impl u8x16pub fn store_aligned(self, slice: &mut [u8])[src]
pub fn store_aligned(self, slice: &mut [u8])Writes the values of the vector to the slice.
Panics
If slice.len() < Self::lanes() or &slice[0] is not
aligned to an align_of::<Self>() boundary.
pub fn store_unaligned(self, slice: &mut [u8])[src]
pub fn store_unaligned(self, slice: &mut [u8])pub unsafe fn store_aligned_unchecked(self, slice: &mut [u8])[src]
pub unsafe fn store_aligned_unchecked(self, slice: &mut [u8])Writes the values of the vector to the slice.
Precondition
If slice.len() < Self::lanes() or &slice[0] is not
aligned to an align_of::<Self>() boundary, the behavior is
undefined.
pub unsafe fn store_unaligned_unchecked(self, slice: &mut [u8])[src]
pub unsafe fn store_unaligned_unchecked(self, slice: &mut [u8])Writes the values of the vector to the slice.
Precondition
If slice.len() < Self::lanes() the behavior is undefined.
pub fn load_aligned(slice: &[u8]) -> u8x16[src]
pub fn load_aligned(slice: &[u8]) -> u8x16Instantiates a new vector with the values of the slice.
Panics
If slice.len() < Self::lanes() or &slice[0] is not aligned
to an align_of::<Self>() boundary.
pub fn load_unaligned(slice: &[u8]) -> u8x16[src]
pub fn load_unaligned(slice: &[u8]) -> u8x16pub unsafe fn load_aligned_unchecked(slice: &[u8]) -> u8x16[src]
pub unsafe fn load_aligned_unchecked(slice: &[u8]) -> u8x16Instantiates a new vector with the values of the slice.
Precondition
If slice.len() < Self::lanes() or &slice[0] is not aligned
to an align_of::<Self>() boundary, the behavior is undefined.
pub unsafe fn load_unaligned_unchecked(slice: &[u8]) -> u8x16[src]
pub unsafe fn load_unaligned_unchecked(slice: &[u8]) -> u8x16Instantiates a new vector with the values of the slice.
Precondition
If slice.len() < Self::lanes() the behavior is undefined.
impl u8x16[src]
impl u8x16pub fn eq(self, other: u8x16) -> b8x16[src]
pub fn eq(self, other: u8x16) -> b8x16Lane-wise equality comparison.
pub fn ne(self, other: u8x16) -> b8x16[src]
pub fn ne(self, other: u8x16) -> b8x16Lane-wise inequality comparison.
pub fn lt(self, other: u8x16) -> b8x16[src]
pub fn lt(self, other: u8x16) -> b8x16Lane-wise less-than comparison.
pub fn le(self, other: u8x16) -> b8x16[src]
pub fn le(self, other: u8x16) -> b8x16Lane-wise less-than-or-equals comparison.
pub fn gt(self, other: u8x16) -> b8x16[src]
pub fn gt(self, other: u8x16) -> b8x16Lane-wise greater-than comparison.
pub fn ge(self, other: u8x16) -> b8x16[src]
pub fn ge(self, other: u8x16) -> b8x16Lane-wise greater-than-or-equals comparison.
impl u8x16[src]
impl u8x16pub fn sum(self) -> u8[src]
pub fn sum(self) -> u8Lane-wise addition of the vector elements.
pub fn product(self) -> u8[src]
pub fn product(self) -> u8Lane-wise multiplication of the vector elements.
impl u8x16[src]
impl u8x16impl u8x16[src]
impl u8x16pub fn and(self) -> u8[src]
pub fn and(self) -> u8Lane-wise bitwise and of the vector elements.
pub fn or(self) -> u8[src]
pub fn or(self) -> u8Lane-wise bitwise or of the vector elements.
pub fn xor(self) -> u8[src]
pub fn xor(self) -> u8Lane-wise bitwise xor of the vector elements.
Trait Implementations
impl Shl<usize> for u8x16[src]
impl Shl<usize> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: usize) -> u8x16[src]
fn shl(self, other: usize) -> u8x16Performs the << operation.
impl Shl<isize> for u8x16[src]
impl Shl<isize> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: isize) -> u8x16[src]
fn shl(self, other: isize) -> u8x16Performs the << operation.
impl Shl<i32> for u8x16[src]
impl Shl<i32> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: i32) -> u8x16[src]
fn shl(self, other: i32) -> u8x16Performs the << operation.
impl Shl<u8> for u8x16[src]
impl Shl<u8> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: u8) -> u8x16[src]
fn shl(self, other: u8) -> u8x16Performs the << operation.
impl Shl<u32> for u8x16[src]
impl Shl<u32> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: u32) -> u8x16[src]
fn shl(self, other: u32) -> u8x16Performs the << operation.
impl Shl<i8> for u8x16[src]
impl Shl<i8> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: i8) -> u8x16[src]
fn shl(self, other: i8) -> u8x16Performs the << operation.
impl Shl<u16> for u8x16[src]
impl Shl<u16> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: u16) -> u8x16[src]
fn shl(self, other: u16) -> u8x16Performs the << operation.
impl Shl<i16> for u8x16[src]
impl Shl<i16> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: i16) -> u8x16[src]
fn shl(self, other: i16) -> u8x16Performs the << operation.
impl Shl<i64> for u8x16[src]
impl Shl<i64> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: i64) -> u8x16[src]
fn shl(self, other: i64) -> u8x16Performs the << operation.
impl Shl<u64> for u8x16[src]
impl Shl<u64> for u8x16type Output = u8x16
The resulting type after applying the << operator.
fn shl(self, other: u64) -> u8x16[src]
fn shl(self, other: u64) -> u8x16Performs the << operation.
impl From<u8x16> for i32x16[src]
impl From<u8x16> for i32x16impl From<u8x16> for f32x16[src]
impl From<u8x16> for f32x16impl From<u8x16> for i16x16[src]
impl From<u8x16> for i16x16impl From<u8x16> for u32x16[src]
impl From<u8x16> for u32x16impl From<u8x16> for u16x16[src]
impl From<u8x16> for u16x16impl PartialEq<u8x16> for u8x16[src]
impl PartialEq<u8x16> for u8x16fn eq(&self, other: &u8x16) -> bool[src]
fn eq(&self, other: &u8x16) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &u8x16) -> bool[src]
fn ne(&self, other: &u8x16) -> boolThis method tests for !=.
impl Sub<u8x16> for u8x16[src]
impl Sub<u8x16> for u8x16type Output = u8x16
The resulting type after applying the - operator.
fn sub(self, other: u8x16) -> u8x16[src]
fn sub(self, other: u8x16) -> u8x16Performs the - operation.
impl PartialOrd<u8x16> for u8x16[src]
impl PartialOrd<u8x16> for u8x16fn partial_cmp(&self, __arg_0: &u8x16) -> Option<Ordering>[src]
fn partial_cmp(&self, __arg_0: &u8x16) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &u8x16) -> bool[src]
fn lt(&self, __arg_0: &u8x16) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &u8x16) -> bool[src]
fn le(&self, __arg_0: &u8x16) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &u8x16) -> bool[src]
fn gt(&self, __arg_0: &u8x16) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &u8x16) -> bool[src]
fn ge(&self, __arg_0: &u8x16) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Default for u8x16[src]
impl Default for u8x16impl SubAssign<u8x16> for u8x16[src]
impl SubAssign<u8x16> for u8x16fn sub_assign(&mut self, other: u8x16)[src]
fn sub_assign(&mut self, other: u8x16)Performs the -= operation.
impl RemAssign<u8x16> for u8x16[src]
impl RemAssign<u8x16> for u8x16fn rem_assign(&mut self, other: u8x16)[src]
fn rem_assign(&mut self, other: u8x16)Performs the %= operation.
impl Div<u8x16> for u8x16[src]
impl Div<u8x16> for u8x16type Output = u8x16
The resulting type after applying the / operator.
fn div(self, other: u8x16) -> u8x16[src]
fn div(self, other: u8x16) -> u8x16Performs the / operation.
impl BitXorAssign<u8x16> for u8x16[src]
impl BitXorAssign<u8x16> for u8x16fn bitxor_assign(&mut self, other: u8x16)[src]
fn bitxor_assign(&mut self, other: u8x16)Performs the ^= operation.
impl BitAnd<u8x16> for u8x16[src]
impl BitAnd<u8x16> for u8x16type Output = u8x16
The resulting type after applying the & operator.
fn bitand(self, other: u8x16) -> u8x16[src]
fn bitand(self, other: u8x16) -> u8x16Performs the & operation.
impl FromBits<u8x16> for i32x4[src]
impl FromBits<u8x16> for i32x4impl FromBits<u8x16> for u32x4[src]
impl FromBits<u8x16> for u32x4impl FromBits<u16x8> for u8x16[src]
impl FromBits<u16x8> for u8x16impl FromBits<u8x16> for f32x4[src]
impl FromBits<u8x16> for f32x4impl FromBits<u8x16> for u16x8[src]
impl FromBits<u8x16> for u16x8impl FromBits<i16x8> for u8x16[src]
impl FromBits<i16x8> for u8x16impl FromBits<u8x16> for u64x2[src]
impl FromBits<u8x16> for u64x2impl FromBits<f64x2> for u8x16[src]
impl FromBits<f64x2> for u8x16impl FromBits<u8x16> for i64x2[src]
impl FromBits<u8x16> for i64x2impl FromBits<i32x4> for u8x16[src]
impl FromBits<i32x4> for u8x16impl FromBits<u8x16> for i16x8[src]
impl FromBits<u8x16> for i16x8impl FromBits<b8x16> for u8x16[src]
impl FromBits<b8x16> for u8x16impl FromBits<f32x4> for u8x16[src]
impl FromBits<f32x4> for u8x16impl FromBits<u8x16> for f64x2[src]
impl FromBits<u8x16> for f64x2impl FromBits<u8x16> for i8x16[src]
impl FromBits<u8x16> for i8x16impl FromBits<i64x2> for u8x16[src]
impl FromBits<i64x2> for u8x16impl FromBits<i8x16> for u8x16[src]
impl FromBits<i8x16> for u8x16impl FromBits<u32x4> for u8x16[src]
impl FromBits<u32x4> for u8x16impl FromBits<u64x2> for u8x16[src]
impl FromBits<u64x2> for u8x16impl BitXor<u8x16> for u8x16[src]
impl BitXor<u8x16> for u8x16type Output = u8x16
The resulting type after applying the ^ operator.
fn bitxor(self, other: u8x16) -> u8x16[src]
fn bitxor(self, other: u8x16) -> u8x16Performs the ^ operation.
impl Shr<i8> for u8x16[src]
impl Shr<i8> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: i8) -> u8x16[src]
fn shr(self, other: i8) -> u8x16Performs the >> operation.
impl Shr<isize> for u8x16[src]
impl Shr<isize> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: isize) -> u8x16[src]
fn shr(self, other: isize) -> u8x16Performs the >> operation.
impl Shr<u16> for u8x16[src]
impl Shr<u16> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: u16) -> u8x16[src]
fn shr(self, other: u16) -> u8x16Performs the >> operation.
impl Shr<u8> for u8x16[src]
impl Shr<u8> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: u8) -> u8x16[src]
fn shr(self, other: u8) -> u8x16Performs the >> operation.
impl Shr<u32> for u8x16[src]
impl Shr<u32> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: u32) -> u8x16[src]
fn shr(self, other: u32) -> u8x16Performs the >> operation.
impl Shr<i16> for u8x16[src]
impl Shr<i16> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: i16) -> u8x16[src]
fn shr(self, other: i16) -> u8x16Performs the >> operation.
impl Shr<u64> for u8x16[src]
impl Shr<u64> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: u64) -> u8x16[src]
fn shr(self, other: u64) -> u8x16Performs the >> operation.
impl Shr<i32> for u8x16[src]
impl Shr<i32> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: i32) -> u8x16[src]
fn shr(self, other: i32) -> u8x16Performs the >> operation.
impl Shr<i64> for u8x16[src]
impl Shr<i64> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: i64) -> u8x16[src]
fn shr(self, other: i64) -> u8x16Performs the >> operation.
impl Shr<usize> for u8x16[src]
impl Shr<usize> for u8x16type Output = u8x16
The resulting type after applying the >> operator.
fn shr(self, other: usize) -> u8x16[src]
fn shr(self, other: usize) -> u8x16Performs the >> operation.
impl ShrAssign<i64> for u8x16[src]
impl ShrAssign<i64> for u8x16fn shr_assign(&mut self, other: i64)[src]
fn shr_assign(&mut self, other: i64)Performs the >>= operation.
impl ShrAssign<u32> for u8x16[src]
impl ShrAssign<u32> for u8x16fn shr_assign(&mut self, other: u32)[src]
fn shr_assign(&mut self, other: u32)Performs the >>= operation.
impl ShrAssign<usize> for u8x16[src]
impl ShrAssign<usize> for u8x16fn shr_assign(&mut self, other: usize)[src]
fn shr_assign(&mut self, other: usize)Performs the >>= operation.
impl ShrAssign<u64> for u8x16[src]
impl ShrAssign<u64> for u8x16fn shr_assign(&mut self, other: u64)[src]
fn shr_assign(&mut self, other: u64)Performs the >>= operation.
impl ShrAssign<isize> for u8x16[src]
impl ShrAssign<isize> for u8x16fn shr_assign(&mut self, other: isize)[src]
fn shr_assign(&mut self, other: isize)Performs the >>= operation.
impl ShrAssign<i32> for u8x16[src]
impl ShrAssign<i32> for u8x16fn shr_assign(&mut self, other: i32)[src]
fn shr_assign(&mut self, other: i32)Performs the >>= operation.
impl ShrAssign<i8> for u8x16[src]
impl ShrAssign<i8> for u8x16fn shr_assign(&mut self, other: i8)[src]
fn shr_assign(&mut self, other: i8)Performs the >>= operation.
impl ShrAssign<u8> for u8x16[src]
impl ShrAssign<u8> for u8x16fn shr_assign(&mut self, other: u8)[src]
fn shr_assign(&mut self, other: u8)Performs the >>= operation.
impl ShrAssign<i16> for u8x16[src]
impl ShrAssign<i16> for u8x16fn shr_assign(&mut self, other: i16)[src]
fn shr_assign(&mut self, other: i16)Performs the >>= operation.
impl ShrAssign<u16> for u8x16[src]
impl ShrAssign<u16> for u8x16fn shr_assign(&mut self, other: u16)[src]
fn shr_assign(&mut self, other: u16)Performs the >>= operation.
impl AddAssign<u8x16> for u8x16[src]
impl AddAssign<u8x16> for u8x16fn add_assign(&mut self, other: u8x16)[src]
fn add_assign(&mut self, other: u8x16)Performs the += operation.
impl DivAssign<u8x16> for u8x16[src]
impl DivAssign<u8x16> for u8x16fn div_assign(&mut self, other: u8x16)[src]
fn div_assign(&mut self, other: u8x16)Performs the /= operation.
impl Add<u8x16> for u8x16[src]
impl Add<u8x16> for u8x16type Output = u8x16
The resulting type after applying the + operator.
fn add(self, other: u8x16) -> u8x16[src]
fn add(self, other: u8x16) -> u8x16Performs the + operation.
impl Debug for u8x16[src]
impl Debug for u8x16fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl BitOrAssign<u8x16> for u8x16[src]
impl BitOrAssign<u8x16> for u8x16fn bitor_assign(&mut self, other: u8x16)[src]
fn bitor_assign(&mut self, other: u8x16)Performs the |= operation.
impl Copy for u8x16[src]
impl Copy for u8x16impl Mul<u8x16> for u8x16[src]
impl Mul<u8x16> for u8x16type Output = u8x16
The resulting type after applying the * operator.
fn mul(self, other: u8x16) -> u8x16[src]
fn mul(self, other: u8x16) -> u8x16Performs the * operation.
impl Rem<u8x16> for u8x16[src]
impl Rem<u8x16> for u8x16type Output = u8x16
The resulting type after applying the % operator.
fn rem(self, other: u8x16) -> u8x16[src]
fn rem(self, other: u8x16) -> u8x16Performs the % operation.
impl LowerHex for u8x16[src]
impl LowerHex for u8x16fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter.
impl Not for u8x16[src]
impl Not for u8x16type Output = u8x16
The resulting type after applying the ! operator.
fn not(self) -> u8x16[src]
fn not(self) -> u8x16Performs the unary ! operation.
impl Eq for u8x16[src]
impl Eq for u8x16impl Hash for u8x16[src]
impl Hash for u8x16fn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
fn hash<H>(&self, state: &mut H) where
H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for u8x16[src]
impl Clone for u8x16fn clone(&self) -> u8x16[src]
fn clone(&self) -> u8x16Returns 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 MulAssign<u8x16> for u8x16[src]
impl MulAssign<u8x16> for u8x16fn mul_assign(&mut self, other: u8x16)[src]
fn mul_assign(&mut self, other: u8x16)Performs the *= operation.
impl BitOr<u8x16> for u8x16[src]
impl BitOr<u8x16> for u8x16type Output = u8x16
The resulting type after applying the | operator.
fn bitor(self, other: u8x16) -> u8x16[src]
fn bitor(self, other: u8x16) -> u8x16Performs the | operation.
impl BitAndAssign<u8x16> for u8x16[src]
impl BitAndAssign<u8x16> for u8x16fn bitand_assign(&mut self, other: u8x16)[src]
fn bitand_assign(&mut self, other: u8x16)Performs the &= operation.
impl ShlAssign<u16> for u8x16[src]
impl ShlAssign<u16> for u8x16fn shl_assign(&mut self, other: u16)[src]
fn shl_assign(&mut self, other: u16)Performs the <<= operation.
impl ShlAssign<i8> for u8x16[src]
impl ShlAssign<i8> for u8x16fn shl_assign(&mut self, other: i8)[src]
fn shl_assign(&mut self, other: i8)Performs the <<= operation.
impl ShlAssign<usize> for u8x16[src]
impl ShlAssign<usize> for u8x16fn shl_assign(&mut self, other: usize)[src]
fn shl_assign(&mut self, other: usize)Performs the <<= operation.
impl ShlAssign<i32> for u8x16[src]
impl ShlAssign<i32> for u8x16fn shl_assign(&mut self, other: i32)[src]
fn shl_assign(&mut self, other: i32)Performs the <<= operation.
impl ShlAssign<i16> for u8x16[src]
impl ShlAssign<i16> for u8x16fn shl_assign(&mut self, other: i16)[src]
fn shl_assign(&mut self, other: i16)Performs the <<= operation.
impl ShlAssign<u8> for u8x16[src]
impl ShlAssign<u8> for u8x16fn shl_assign(&mut self, other: u8)[src]
fn shl_assign(&mut self, other: u8)Performs the <<= operation.
impl ShlAssign<u64> for u8x16[src]
impl ShlAssign<u64> for u8x16fn shl_assign(&mut self, other: u64)[src]
fn shl_assign(&mut self, other: u64)Performs the <<= operation.
impl ShlAssign<u32> for u8x16[src]
impl ShlAssign<u32> for u8x16fn shl_assign(&mut self, other: u32)[src]
fn shl_assign(&mut self, other: u32)Performs the <<= operation.
impl ShlAssign<i64> for u8x16[src]
impl ShlAssign<i64> for u8x16fn shl_assign(&mut self, other: i64)[src]
fn shl_assign(&mut self, other: i64)Performs the <<= operation.
impl ShlAssign<isize> for u8x16[src]
impl ShlAssign<isize> for u8x16fn shl_assign(&mut self, other: isize)[src]
fn shl_assign(&mut self, other: isize)Performs the <<= operation.