Trait SIMD

Source
pub trait SIMD {
    type Element;
    type Lane;

    // Required methods
    fn splat(element: Self::Element) -> Self;
    fn new_lane(lane: Self::Lane) -> Self;
}
Expand description

Trait for SIMD objects and their creation.

Required Associated Types§

Source

type Element

Element from which the SIMD value can be created.

Source

type Lane

The type a lane is equivalent to.

Required Methods§

Source

fn splat(element: Self::Element) -> Self

Creates a SIMD value with all lanes set to the specified value.

Source

fn new_lane(lane: Self::Lane) -> Self

Creates a SIMD value with lanes set to the given values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SIMD for DVec2x2

Source§

impl SIMD for DVec2x4

Source§

impl SIMD for DVec3x2

Source§

impl SIMD for DVec3x4

Source§

impl SIMD for DVec4x2

Source§

impl SIMD for DVec4x4

Source§

impl SIMD for Vec2x4

Source§

impl SIMD for Vec2x8

Source§

impl SIMD for Vec3x4

Source§

impl SIMD for Vec3x8

Source§

impl SIMD for Vec4x4

Source§

impl SIMD for Vec4x8

Source§

impl SIMD for f32x4

Source§

impl SIMD for f32x8

Source§

impl SIMD for f64x2

Source§

impl SIMD for f64x4