pub trait Num: Add<Self, Output = Self> + AddAssign + Sub<Self, Output = Self> + SubAssign + Mul<Self, Output = Self> + MulAssign + Div<Self, Output = Self> + DivAssign + Rem<Self, Output = Self> + PartialOrd + Display + Copy + PartialEq + NumTrampolene + Half + NumIdentity + Sized + Debug + ToRounded<f32> + FromRounded<f32> { }
Expand description

A common number trait.

A number is a collection of the traits below. But you cannot get them all together in Rust. So we have had to build our own.

The Points, Rects, and Shapes, all use these traits.

Implementors

You might be wondering ‘what does this do?’ So am I!

I think it’s saying *’the trait above really does exists, and is implemented, for every type that implements Add + AddAssign + Sub, etc.