Trait rand::distributions::utils::FloatAsSIMD

source ·
pub(crate) trait FloatAsSIMD: Sized {
    // Provided methods
    fn lanes() -> usize { ... }
    fn splat(scalar: Self) -> Self { ... }
    fn extract(self, index: usize) -> Self { ... }
    fn replace(self, index: usize, new_value: Self) -> Self { ... }
}
Expand description

Implement functions on f32/f64 to give them APIs similar to SIMD types

Provided Methods§

source

fn lanes() -> usize

source

fn splat(scalar: Self) -> Self

source

fn extract(self, index: usize) -> Self

source

fn replace(self, index: usize, new_value: Self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FloatAsSIMD for f32

source§

impl FloatAsSIMD for f64

Implementors§