#[repr(simd)]pub(crate) struct u64x2([u64; 2]);
Tuple Fields§
§0: [u64; 2]
Implementations§
Source§impl u64x2
impl u64x2
pub(crate) const fn new(x0: u64, x1: u64) -> Self
pub(crate) const fn from_array(elements: [u64; 2]) -> Self
pub(crate) fn splat(value: u64) -> Self
Sourcepub(crate) fn extract(&self, index: usize) -> u64
pub(crate) fn extract(&self, index: usize) -> u64
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) -> &[u64; 2]
Trait Implementations§
Source§impl From<u64x2> for vector_unsigned_long_long
Available on s390x only.
impl From<u64x2> for vector_unsigned_long_long
Available on s390x only.
impl Copy for u64x2
Auto Trait Implementations§
impl Freeze for u64x2
impl RefUnwindSafe for u64x2
impl Send for u64x2
impl Sync for u64x2
impl Unpin for u64x2
impl UnsafeUnpin for u64x2
impl UnwindSafe for u64x2
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