cosmic::cosmic_theme::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: f32, a: f32) -> f32

Source§

impl MulAdd for f64

Source§

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

Source§

impl MulAdd for u8

Source§

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

Source§

impl MulAdd for u16

Source§

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

Source§

impl MulAdd for u32

Source§

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

Source§

impl MulAdd for u64

Source§

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

Source§

impl MulAdd for u128

Source§

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

Implementors§