Skip to main content

SimdElement

Trait SimdElement 

Source
pub trait SimdElement:
    Copy
    + Clone
    + Seal
    + Default
    + Debug
    + Display
    + FromStr
    + LowerExp
    + UpperExp
    + PartialOrd
    + PartialEq
    + From<bool>
    + Add<Self, Output = Self>
    + AddAssign<Self>
    + Sub<Self, Output = Self>
    + SubAssign<Self>
    + Mul<Self, Output = Self>
    + MulAssign<Self>
    + Div<Self, Output = Self>
    + DivAssign<Self>
    + Rem<Self, Output = Self>
    + RemAssign<Self>
    + Sum<Self>
    + Product<Self>
    + for<'a> Add<&'a Self, Output = Self>
    + for<'a> AddAssign<&'a Self>
    + for<'a> Sub<&'a Self, Output = Self>
    + for<'a> SubAssign<&'a Self>
    + for<'a> Mul<&'a Self, Output = Self>
    + for<'a> MulAssign<&'a Self>
    + for<'a> Div<&'a Self, Output = Self>
    + for<'a> DivAssign<&'a Self>
    + for<'a> Rem<&'a Self, Output = Self>
    + for<'a> RemAssign<&'a Self>
    + for<'a> Sum<&'a Self>
    + for<'a> Product<&'a Self> {
    type Mask: SimdElement<Mask = Self::Mask>;

    const BITS: usize = _;
}
Expand description

Types that can be used as elements in SIMD vectors.

Provided Associated Constants§

Source

const BITS: usize = _

The size of an element in bits.

Required Associated Types§

Source

type Mask: SimdElement<Mask = Self::Mask>

The associated mask lane type. This will be a signed integer of the same size as this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SimdElement for f32

Source§

impl SimdElement for f64

Source§

impl SimdElement for i8

Source§

impl SimdElement for i16

Source§

impl SimdElement for i32

Source§

impl SimdElement for i64

Source§

impl SimdElement for u8

Source§

impl SimdElement for u16

Source§

impl SimdElement for u32

Source§

impl SimdElement for u64

Implementors§