Trait palette::num::Arithmetics

source ·
pub trait Arithmetics
where 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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Arithmetics for T
where 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>,