Trait cosmic::cosmic_theme::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: 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§