#[repr(simd)]pub(crate) struct i16x8([i16; 8]);
Tuple Fields§
§0: [i16; 8]
Implementations§
Source§impl i16x8
impl i16x8
pub(crate) const fn new( x0: i16, x1: i16, x2: i16, x3: i16, x4: i16, x5: i16, x6: i16, x7: i16, ) -> Self
pub(crate) const fn from_array(elements: [i16; 8]) -> Self
pub(crate) fn splat(value: i16) -> Self
Sourcepub(crate) fn extract(&self, index: usize) -> i16
pub(crate) fn extract(&self, index: usize) -> i16
Extract the element at position index
.
index
is not a constant so this is not efficient!
Use for testing only.
pub(crate) fn as_array(&self) -> &[i16; 8]
Trait Implementations§
Source§impl From<i16x8> for vector_signed_short
Available on PowerPC or PowerPC-64 only.
impl From<i16x8> for vector_signed_short
Available on PowerPC or PowerPC-64 only.
Source§impl From<i16x8> for vector_signed_short
Available on s390x only.
impl From<i16x8> for vector_signed_short
Available on s390x only.
impl Copy 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> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more