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

Object Safety§

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§