Skip to main content

GradientAlphas

Trait GradientAlphas 

Source
pub trait GradientAlphas {
    // Required method
    fn endpoint_alphas(&self) -> (f32, f32);

    // Provided method
    fn direction(&self) -> (f32, f32) { ... }
}

Required Methods§

Source

fn endpoint_alphas(&self) -> (f32, f32)

Provided Methods§

Source

fn direction(&self) -> (f32, f32)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§