Trait palette::num::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.

Object Safety§

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

source§

impl MulAdd for f32x4

source§

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

source§

impl MulAdd for f32x8

source§

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

source§

impl MulAdd for f64x2

source§

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

source§

impl MulAdd for f64x4

source§

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

Implementors§