d1adf45389
Add checked_pow function Implements a `checked_pow` function which does the same as `pow`, just with overflow checks. And, similar to #152 and #153, the function uses references instead of cloning. Adds a little macro to spare code repetition. Its scoped to the function so nothing gets polluted. |
||
---|---|---|
.travis | ||
benches | ||
doc | ||
num-macros | ||
src | ||
.gitignore | ||
.multirust.sh | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
num
A collection of numeric types and traits for Rust.
This includes new types for big integers, rationals, and complex numbers, new traits for generic programming on numeric properties like `Integer, and generic range iterators.
Usage
Add this to your Cargo.toml
:
[dependencies]
num = "0.1"
and this to your crate root:
extern crate num;