pub struct U8x16(pub [u8; 16]);Expand description
16-lane vector of 8-bit unsigned integers (128-bit).
Common uses:
- Raw pixel data
- SAD calculations
- Luma/chroma samples
Tuple Fields§
§0: [u8; 16]Implementations§
Source§impl U8x16
impl U8x16
Sourcepub const fn splat(value: u8) -> Self
pub const fn splat(value: u8) -> Self
Create a new vector with all lanes set to the same value.
Sourcepub const fn from_array(arr: [u8; 16]) -> Self
pub const fn from_array(arr: [u8; 16]) -> Self
Create a vector from an array.
Sourcepub fn widen_low_i16(self) -> I16x8
pub fn widen_low_i16(self) -> I16x8
Widen low 8 bytes to I16x8.
Sourcepub fn widen_high_i16(self) -> I16x8
pub fn widen_high_i16(self) -> I16x8
Widen high 8 bytes to I16x8.
Sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Get a mutable pointer to the underlying array.
Sourcepub fn copy_from_slice(&mut self, src: &[u8])
pub fn copy_from_slice(&mut self, src: &[u8])
Copy elements from a slice.
Trait Implementations§
impl Copy for U8x16
impl Eq for U8x16
impl StructuralPartialEq for U8x16
Auto Trait Implementations§
impl Freeze for U8x16
impl RefUnwindSafe for U8x16
impl Send for U8x16
impl Sync for U8x16
impl Unpin for U8x16
impl UnsafeUnpin for U8x16
impl UnwindSafe for U8x16
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