Trait Scalar

Source
pub trait Scalar<Token, Width>: Copy
where Token: Token, Width: Width,
{ type Vector: Vector<Scalar = Self, Token = Token, Width = Width>; // Provided methods fn zeroed(token: Token) -> Self::Vector { ... } fn splat(self, token: Token) -> Self::Vector { ... } }
Expand description

A scalar value.

Required Associated Types§

Source

type Vector: Vector<Scalar = Self, Token = Token, Width = Width>

Provided Methods§

Source

fn zeroed(token: Token) -> Self::Vector

Create a vector set to zero.

See zeroed.

Source

fn splat(self, token: Token) -> Self::Vector

Splat a scalar to a vector.

See splat.

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.

Implementations on Foreign Types§

Source§

impl Scalar<Generic, W1> for f32

Source§

impl Scalar<Generic, W1> for f64

Source§

impl Scalar<Generic, W1> for Complex<f32>

Source§

impl Scalar<Generic, W1> for Complex<f64>

Source§

impl Scalar<Generic, W2> for f32

Source§

impl Scalar<Generic, W2> for f64

Source§

impl Scalar<Generic, W2> for Complex<f32>

Source§

impl Scalar<Generic, W2> for Complex<f64>

Source§

impl Scalar<Generic, W4> for f32

Source§

impl Scalar<Generic, W4> for f64

Source§

impl Scalar<Generic, W4> for Complex<f32>

Source§

impl Scalar<Generic, W4> for Complex<f64>

Source§

impl Scalar<Generic, W8> for f32

Source§

impl Scalar<Generic, W8> for f64

Source§

impl Scalar<Generic, W8> for Complex<f32>

Source§

impl Scalar<Generic, W8> for Complex<f64>

Source§

impl Scalar<Avx, W1> for f32

Source§

impl Scalar<Avx, W1> for f64

Source§

impl Scalar<Avx, W1> for Complex<f32>

Source§

impl Scalar<Avx, W1> for Complex<f64>

Source§

impl Scalar<Avx, W2> for f32

Source§

impl Scalar<Avx, W2> for f64

Source§

impl Scalar<Avx, W2> for Complex<f32>

Source§

impl Scalar<Avx, W2> for Complex<f64>

Source§

impl Scalar<Avx, W4> for f32

Source§

impl Scalar<Avx, W4> for f64

Source§

impl Scalar<Avx, W4> for Complex<f32>

Source§

impl Scalar<Avx, W4> for Complex<f64>

Source§

impl Scalar<Avx, W8> for f32

Source§

impl Scalar<Avx, W8> for f64

Source§

impl Scalar<Avx, W8> for Complex<f32>

Source§

impl Scalar<Avx, W8> for Complex<f64>

Source§

impl Scalar<Sse, W1> for f32

Source§

impl Scalar<Sse, W1> for f64

Source§

impl Scalar<Sse, W1> for Complex<f32>

Source§

impl Scalar<Sse, W1> for Complex<f64>

Source§

impl Scalar<Sse, W2> for f32

Source§

impl Scalar<Sse, W2> for f64

Source§

impl Scalar<Sse, W2> for Complex<f32>

Source§

impl Scalar<Sse, W2> for Complex<f64>

Source§

impl Scalar<Sse, W4> for f32

Source§

impl Scalar<Sse, W4> for f64

Source§

impl Scalar<Sse, W4> for Complex<f32>

Source§

impl Scalar<Sse, W4> for Complex<f64>

Source§

impl Scalar<Sse, W8> for f32

Source§

impl Scalar<Sse, W8> for f64

Source§

impl Scalar<Sse, W8> for Complex<f32>

Source§

impl Scalar<Sse, W8> for Complex<f64>

Implementors§