Traits for implementing generic algorithms over Rust's primitive numeric types
The goals of this crate are similar to that of num-traits
, but without being burdened by the constraints of backwards compatibility.
Add this to your Cargo.toml
:
toml
[dependencies]
prim-traits = "0.0.1"
and this to your crate root:
rust
extern crate prim_traits;
The prim-traits
currently targets nightly builds. However plan is to very soon add compatibility with recent releases of stable.