Trait palette::num::Arithmetics

source ·
pub trait Arithmeticswhere
    for<'a> Self: Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Neg<Output = Self> + Sized + Add<&'a Self, Output = Self> + Sub<&'a Self, Output = Self> + Mul<&'a Self, Output = Self> + Div<&'a Self, Output = Self>,{ }
Expand description

A helper trait that collects arithmetic traits under one name.

Implementors§

source§

impl<T> Arithmetics for Twhere T: Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Neg<Output = Self> + Sized, for<'a> Self: Add<&'a Self, Output = Self> + Sub<&'a Self, Output = Self> + Mul<&'a Self, Output = Self> + Div<&'a Self, Output = Self>,