cosmic::cosmic_theme::palette::num

Trait Arithmetics

source
pub trait Arithmetics:
    Sized
    + Add<Output = Self, Output = Self>
    + Sub<Output = Self, Output = Self>
    + Mul<Output = Self, Output = Self>
    + Div<Output = Self, Output = Self>
    + Neg<Output = Self>
    + for<'a> Add<&'a Self>
    + for<'a> Sub<&'a Self>
    + for<'a> Mul<&'a Self>
    + for<'a> Div<&'a 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: Neg<Output = T> + Add<Output = T, Output = T> + for<'a> Add<&'a T> + Mul<Output = T, Output = T> + for<'a> Sub<&'a T, Output = T, Output = T> + for<'a> Mul<&'a T> + Div<Output = T, Output = T> + for<'a> Div<&'a T> + Sub,