Skip to main content

SimdM

Struct SimdM 

Source
#[repr(simd)]
pub(crate) struct SimdM<T: SimdElement, const N: usize>([T; N]);

Tuple Fields§

§0: [T; N]

Implementations§

Source§

impl<T: SimdElement, const N: usize> SimdM<T, N>

Source

const fn bool_to_internal(x: bool) -> T

Source

pub(crate) const fn splat(value: bool) -> Self

Source

pub(crate) const fn as_array(&self) -> &[T; N]

Source§

impl SimdM<i8, 16>

Source

pub(crate) const fn new( x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, x8: bool, x9: bool, x10: bool, x11: bool, x12: bool, x13: bool, x14: bool, x15: bool, ) -> Self

Source§

impl SimdM<i16, 8>

Source

pub(crate) const fn new( x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, ) -> Self

Source§

impl SimdM<i32, 4>

Source

pub(crate) const fn new(x0: bool, x1: bool, x2: bool, x3: bool) -> Self

Source§

impl SimdM<i64, 2>

Source

pub(crate) const fn new(x0: bool, x1: bool) -> Self

Source§

impl SimdM<i8, 32>

Source

pub(crate) const fn new( x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, x8: bool, x9: bool, x10: bool, x11: bool, x12: bool, x13: bool, x14: bool, x15: bool, x16: bool, x17: bool, x18: bool, x19: bool, x20: bool, x21: bool, x22: bool, x23: bool, x24: bool, x25: bool, x26: bool, x27: bool, x28: bool, x29: bool, x30: bool, x31: bool, ) -> Self

Source§

impl SimdM<i16, 16>

Source

pub(crate) const fn new( x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, x8: bool, x9: bool, x10: bool, x11: bool, x12: bool, x13: bool, x14: bool, x15: bool, ) -> Self

Source§

impl SimdM<i32, 8>

Source

pub(crate) const fn new( x0: bool, x1: bool, x2: bool, x3: bool, x4: bool, x5: bool, x6: bool, x7: bool, ) -> Self

Trait Implementations§

Source§

impl<T: SimdElement, const N: usize> Clone for SimdM<T, N>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)
where Self:,

Performs copy-assignment from source. Read more
Source§

impl<T: SimdElement, const N: usize> Debug for SimdM<T, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<SimdM<i16, 8>> for vector_bool_short

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: SimdM<i16, 8>) -> Self

Converts to this type from the input type.
Source§

impl From<SimdM<i16, 8>> for vector_bool_short

Available on s390x only.
Source§

fn from(value: SimdM<i16, 8>) -> Self

Converts to this type from the input type.
Source§

impl From<SimdM<i32, 4>> for vector_bool_int

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: SimdM<i32, 4>) -> Self

Converts to this type from the input type.
Source§

impl From<SimdM<i32, 4>> for vector_bool_int

Available on s390x only.
Source§

fn from(value: SimdM<i32, 4>) -> Self

Converts to this type from the input type.
Source§

impl From<SimdM<i64, 2>> for vector_bool_long

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: SimdM<i64, 2>) -> Self

Converts to this type from the input type.
Source§

impl From<SimdM<i8, 16>> for vector_bool_char

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: SimdM<i8, 16>) -> Self

Converts to this type from the input type.
Source§

impl From<SimdM<i8, 16>> for vector_bool_char

Available on s390x only.
Source§

fn from(value: SimdM<i8, 16>) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_char> for SimdM<i8, 16>

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: vector_bool_char) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_char> for SimdM<i8, 16>

Available on s390x only.
Source§

fn from(value: vector_bool_char) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_int> for SimdM<i32, 4>

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: vector_bool_int) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_int> for SimdM<i32, 4>

Available on s390x only.
Source§

fn from(value: vector_bool_int) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_long> for SimdM<i64, 2>

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: vector_bool_long) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_short> for SimdM<i16, 8>

Available on PowerPC or PowerPC-64 only.
Source§

fn from(value: vector_bool_short) -> Self

Converts to this type from the input type.
Source§

impl From<vector_bool_short> for SimdM<i16, 8>

Available on s390x only.
Source§

fn from(value: vector_bool_short) -> Self

Converts to this type from the input type.
Source§

impl<T: SimdElement, const N: usize> PartialEq for SimdM<T, N>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Copy + SimdElement, const N: usize> Copy for SimdM<T, N>

Auto Trait Implementations§

§

impl<T, const N: usize> Freeze for SimdM<T, N>
where T: Freeze,

§

impl<T, const N: usize> RefUnwindSafe for SimdM<T, N>
where T: RefUnwindSafe,

§

impl<T, const N: usize> Send for SimdM<T, N>
where T: Send,

§

impl<T, const N: usize> Sync for SimdM<T, N>
where T: Sync,

§

impl<T, const N: usize> Unpin for SimdM<T, N>
where T: Unpin,

§

impl<T, const N: usize> UnsafeUnpin for SimdM<T, N>
where T: UnsafeUnpin,

§

impl<T, const N: usize> UnwindSafe for SimdM<T, N>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit #126799)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SizedTypeProperties for T

Source§

#[doc(hidden)]
const SIZE: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const ALIGN: usize = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[doc(hidden)]
const ALIGNMENT: Alignment = _

🔬This is a nightly-only experimental API. (ptr_alignment_type #102070)
Source§

#[doc(hidden)]
const IS_ZST: bool = _

🔬This is a nightly-only experimental API. (sized_type_properties)
true if this type requires no storage. false if its size is greater than zero. Read more
Source§

#[doc(hidden)]
const LAYOUT: Layout = _

🔬This is a nightly-only experimental API. (sized_type_properties)
Source§

#[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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> NonDrop for T
where T: Copy,

Source§

impl<T> Printable for T
where T: Copy + Debug,