Go to file
Dan Barella 416985d246 Check overflow when casting floats to integers.
This change adds some new macro rules used when converting from floats
to integers. There are two macro rule variants, one for signed ints, one
for unsigned ints.

Among other things, this change specifically addresses the overflow case
documented in https://github.com/rust-num/num-traits/issues/12
2018-01-27 15:41:06 -05:00
ci Move num-traits to its own repo 2017-12-18 17:35:41 -08:00
src Check overflow when casting floats to integers. 2018-01-27 15:41:06 -05:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
.travis.yml Move num-traits to its own repo 2017-12-18 17:35:41 -08:00
Cargo.toml Release num-traits 0.1.42 2018-01-22 18:06:22 -08:00
LICENSE-APACHE Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
LICENSE-MIT Initial seeding from rust repo 2014-09-16 10:35:35 -07:00
README.md Release num-traits 0.1.42 2018-01-22 18:06:22 -08:00
RELEASES.md Release num-traits 0.1.42 2018-01-22 18:06:22 -08:00
bors.toml Enable bors-ng 2017-07-08 22:29:48 -07:00

README.md

num-traits

crate documentation Travis status

Numeric traits for generic mathematics in Rust.

Usage

Add this to your Cargo.toml:

[dependencies]
num-traits = "0.1"

and this to your crate root:

extern crate num_traits;

Releases

Release notes are available in RELEASES.md.

Compatibility

The num-traits crate is tested for rustc 1.8 and greater.