pub trait Additive: Copy + Add<Self, Output = Self> + Sub<Self, Output = Self> { }
Expand description

Set of types that support additions and subtraction.

The Copy trait is also a supertrait as it’s likely to be used everywhere.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Additive for T
where T: Copy + Add<Self, Output = Self> + Sub<Self, Output = Self>,