Skip to main content

SimdElement

Trait SimdElement 

Source
pub trait SimdElement:
    SealedTypes
    + PartialEq
    + Sized
    + Default
    + Copy
    + NumCast
    + NumOps
    + Debug
    + SafeAdd {
    type BitWidthType: BitWidth;
    type Array<A: Arch>: Debug + Copy + SimdToArray<Self>;
    type UType: SimdElement;

    const BIT_SIZE: BitSize;
    const PRIMITIVE_TYPE: PrimitiveType;
    const TYPE: SimdType;
}

Required Associated Constants§

Required Associated Types§

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§

const BIT_SIZE: BitSize = BitSize::Size32

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::Float

Source§

const TYPE: SimdType = SimdType::F32

Source§

type BitWidthType = B32

Source§

type Array<A: Arch> = <A as Arch>::Array32<f32>

Source§

type UType = u32

Source§

impl SimdElement for f64

Source§

const BIT_SIZE: BitSize = BitSize::Size64

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::Float

Source§

const TYPE: SimdType = SimdType::F64

Source§

type BitWidthType = B64

Source§

type Array<A: Arch> = <A as Arch>::Array64<f64>

Source§

type UType = u64

Source§

impl SimdElement for i8

Source§

const BIT_SIZE: BitSize = BitSize::Size8

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::SignedInt

Source§

const TYPE: SimdType = SimdType::I8

Source§

type BitWidthType = B8

Source§

type Array<A: Arch> = <A as Arch>::Array8<i8>

Source§

type UType = u8

Source§

impl SimdElement for i16

Source§

const BIT_SIZE: BitSize = BitSize::Size16

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::SignedInt

Source§

const TYPE: SimdType = SimdType::I16

Source§

type BitWidthType = B16

Source§

type Array<A: Arch> = <A as Arch>::Array16<i16>

Source§

type UType = u16

Source§

impl SimdElement for i32

Source§

const BIT_SIZE: BitSize = BitSize::Size32

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::SignedInt

Source§

const TYPE: SimdType = SimdType::I32

Source§

type BitWidthType = B32

Source§

type Array<A: Arch> = <A as Arch>::Array32<i32>

Source§

type UType = u32

Source§

impl SimdElement for i64

Source§

const BIT_SIZE: BitSize = BitSize::Size64

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::SignedInt

Source§

const TYPE: SimdType = SimdType::I64

Source§

type BitWidthType = B64

Source§

type Array<A: Arch> = <A as Arch>::Array64<i64>

Source§

type UType = u64

Source§

impl SimdElement for u8

Source§

const BIT_SIZE: BitSize = BitSize::Size8

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::UnsignedInt

Source§

const TYPE: SimdType = SimdType::U8

Source§

type BitWidthType = B8

Source§

type Array<A: Arch> = <A as Arch>::Array8<u8>

Source§

type UType = u8

Source§

impl SimdElement for u16

Source§

const BIT_SIZE: BitSize = BitSize::Size16

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::UnsignedInt

Source§

const TYPE: SimdType = SimdType::U16

Source§

type BitWidthType = B16

Source§

type Array<A: Arch> = <A as Arch>::Array16<u16>

Source§

type UType = u16

Source§

impl SimdElement for u32

Source§

const BIT_SIZE: BitSize = BitSize::Size32

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::UnsignedInt

Source§

const TYPE: SimdType = SimdType::U32

Source§

type BitWidthType = B32

Source§

type Array<A: Arch> = <A as Arch>::Array32<u32>

Source§

type UType = u32

Source§

impl SimdElement for u64

Source§

const BIT_SIZE: BitSize = BitSize::Size64

Source§

const PRIMITIVE_TYPE: PrimitiveType = PrimitiveType::UnsignedInt

Source§

const TYPE: SimdType = SimdType::U64

Source§

type BitWidthType = B64

Source§

type Array<A: Arch> = <A as Arch>::Array64<u64>

Source§

type UType = u64

Implementors§