Numeric traits for generic mathematics in Rust.
Add this to your Cargo.toml:
Cargo.toml
[dependencies] num-traits = "0.1"
and this to your crate root:
extern crate num_traits;
The num-traits crate is tested for rustc 1.8 and greater.
num-traits