Skip to main content

GradientLutExt

Trait GradientLutExt 

Source
pub trait GradientLutExt:
    Sized
    + Debug
    + Copy
    + Clone
    + Pod {
    const ZERO: Self;

    // Required method
    fn from_f32x16<S: Simd>(color: f32x16<S>) -> [Self; 16];
}
Expand description

A helper trait for converting gradient colors to Self.

Required Associated Constants§

Source

const ZERO: Self

The zero value.

Required Methods§

Source

fn from_f32x16<S: Simd>(color: f32x16<S>) -> [Self; 16]

Convert from f32x16 to [Self; 16].

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

Source§

const ZERO: Self = 0.0

Source§

fn from_f32x16<S: Simd>(color: f32x16<S>) -> [Self; 16]

Source§

impl GradientLutExt for u8

Source§

const ZERO: Self = 0

Source§

fn from_f32x16<S: Simd>(color: f32x16<S>) -> [Self; 16]

Implementors§