Trait TupleMath

Source
pub trait TupleMath<RA, A: Number>: TupleApply<RA, A, R<A> = Self> {
    // Provided methods
    fn clmp<LA>(self, l: LA, r: RA) -> Self
       where RA: Cast<LA> { ... }
    fn mix<M>(self, a: M, r: RA) -> Self
       where f32: Cast<M> { ... }
    fn sum(self, r: RA) -> Self { ... }
    fn sub(self, r: RA) -> Self { ... }
    fn mul(self, r: RA) -> Self { ... }
    fn div(self, r: RA) -> Self { ... }
    fn powi(self, r: RA) -> Self { ... }
    fn fmin(self, r: RA) -> Self { ... }
    fn fmax(self, r: RA) -> Self { ... }
    fn rem_euc(self, r: RA) -> Self { ... }
}

Provided Methods§

Source

fn clmp<LA>(self, l: LA, r: RA) -> Self
where RA: Cast<LA>,

Source

fn mix<M>(self, a: M, r: RA) -> Self
where f32: Cast<M>,

Source

fn sum(self, r: RA) -> Self

Source

fn sub(self, r: RA) -> Self

Source

fn mul(self, r: RA) -> Self

Source

fn div(self, r: RA) -> Self

Source

fn powi(self, r: RA) -> Self

Source

fn fmin(self, r: RA) -> Self

Source

fn fmax(self, r: RA) -> Self

Source

fn rem_euc(self, r: RA) -> Self

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.

Implementors§

Source§

impl<S: TupleApply<RA, A, R<A> = Self>, RA, A: Number> TupleMath<RA, A> for S