splines::interpolate

Trait Linear

Source
pub trait Linear<T>: Additive {
    // Required methods
    fn outer_mul(self, t: T) -> Self;
    fn outer_div(self, t: T) -> Self;
}
Expand description

Set of additive types that support outer multiplication and division, making them linear.

Required Methods§

Source

fn outer_mul(self, t: T) -> Self

Apply an outer multiplication law.

Source

fn outer_div(self, t: T) -> Self

Apply an outer division law.

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

Source§

fn outer_div(self, t: f32) -> Self

Apply an outer division law.

Source§

fn outer_mul(self, t: f32) -> Self

Source§

impl Linear<f32> for f64

Source§

fn outer_div(self, t: f32) -> Self

Apply an outer division law.

Source§

fn outer_mul(self, t: f32) -> Self

Source§

impl Linear<f64> for f32

Source§

fn outer_div(self, t: f64) -> Self

Apply an outer division law.

Source§

fn outer_mul(self, t: f64) -> Self

Source§

impl Linear<f64> for f64

Source§

fn outer_div(self, t: f64) -> Self

Apply an outer division law.

Source§

fn outer_mul(self, t: f64) -> Self

Implementors§