palette::num

Trait MulAdd

Source
pub trait MulAdd {
    // Required method
    fn mul_add(self, m: Self, a: Self) -> Self;
}
Expand description

Combined multiplication and addition operation.

Required Methods§

Source

fn mul_add(self, m: Self, a: Self) -> Self

Multiplies self with m and add a, as in (self * m) + a.

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

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Source§

impl MulAdd for f64

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Source§

impl MulAdd for u8

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Source§

impl MulAdd for u16

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Source§

impl MulAdd for u32

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Source§

impl MulAdd for u64

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Source§

impl MulAdd for u128

Source§

fn mul_add(self, m: Self, a: Self) -> Self

Implementors§