pub struct I16x8(pub [i16; 8]);Expand description
8-lane vector of 16-bit signed integers (128-bit).
Common uses:
- DCT coefficients
- Pixel differences
- Filter taps
Tuple Fields§
§0: [i16; 8]Implementations§
Source§impl I16x8
impl I16x8
Sourcepub const fn splat(value: i16) -> Self
pub const fn splat(value: i16) -> Self
Create a new vector with all lanes set to the same value.
Sourcepub const fn from_array(arr: [i16; 8]) -> Self
pub const fn from_array(arr: [i16; 8]) -> Self
Create a vector from an array.
Sourcepub fn widen_high(self) -> I32x4
pub fn widen_high(self) -> I32x4
Widen to I32x4 (high half).
Sourcepub fn as_mut_ptr(&mut self) -> *mut i16
pub fn as_mut_ptr(&mut self) -> *mut i16
Get a mutable pointer to the underlying array.
Sourcepub fn copy_from_slice(&mut self, src: &[i16])
pub fn copy_from_slice(&mut self, src: &[i16])
Copy elements from a slice.
Trait Implementations§
impl Copy for I16x8
impl Eq for I16x8
impl StructuralPartialEq for I16x8
Auto Trait Implementations§
impl Freeze for I16x8
impl RefUnwindSafe for I16x8
impl Send for I16x8
impl Sync for I16x8
impl Unpin for I16x8
impl UnsafeUnpin for I16x8
impl UnwindSafe for I16x8
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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