palette::num

Trait MulSub

Source
pub trait MulSub {
    // Required method
    fn mul_sub(self, m: Self, s: Self) -> Self;
}
Expand description

Combined multiplication and subtraction operation.

Required Methods§

Source

fn mul_sub(self, m: Self, s: Self) -> Self

Multiplies self with m and subtract s, as in (self * m) - s.

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

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Source§

impl MulSub for f64

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Source§

impl MulSub for u8

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Source§

impl MulSub for u16

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Source§

impl MulSub for u32

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Source§

impl MulSub for u64

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Source§

impl MulSub for u128

Source§

fn mul_sub(self, m: Self, s: Self) -> Self

Implementors§