Skip to main content

SimdScalar

Trait SimdScalar 

Source
pub trait SimdScalar:
    Sealed
    + Copy
    + Send
    + Sync
    + Add<Output = Self>
    + Mul<Output = Self>
    + Sum<Self>
    + 'static {
    const ZERO: Self;
}
Expand description

Native-precision scalar contract for SIMD-aware slice operations.

Implementations are sealed so native backend invariants stay under crate control. The hidden methods form the monomorphized backend dispatch surface used by the public functions in this module.

Required Associated Constants§

Source

const ZERO: Self

Additive identity.

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 SimdScalar for f32

Source§

const ZERO: Self = 0.0

Source§

impl SimdScalar for f64

Source§

const ZERO: Self = 0.0

Source§

impl SimdScalar for i32

Source§

const ZERO: Self = 0

Source§

impl SimdScalar for i64

Source§

const ZERO: Self = 0

Source§

impl SimdScalar for u32

Source§

const ZERO: Self = 0

Source§

impl SimdScalar for u64

Source§

const ZERO: Self = 0

Source§

impl SimdScalar for usize

Source§

const ZERO: Self = 0

Implementors§