#generics #primitive #traits #numeric

prim-traits

Traits for implementing generic algorithms over Rust's primitive numeric types

1 unstable release

Uses old Rust 2015

0.0.0 Sep 1, 2018

#130 in #generics

MIT/Apache

7KB
72 lines

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.

Usage

Add this to your Cargo.toml:

[dependencies]
prim-traits = "0.0.1"

and this to your crate root:

extern crate prim_traits;

Compatibility

The prim-traits currently targets nightly builds. However plan is to very soon add compatibility with recent releases of stable.

No runtime deps