Go to file
Homu d1adf45389 Auto merge of #162 - est31:add_checked_pow, r=cuviper
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.
2016-02-06 09:01:32 +09:00
.travis Use scripts for compound travis commands 2015-11-18 21:33:07 -08:00
benches Expand bigint shl/shr benchmarking 2016-01-27 22:53:10 -08:00
doc Update repo and doc links 2015-11-12 18:40:13 -08:00
num-macros Publish num 0.1.30 2016-01-08 15:22:54 -08:00
src Add checked_pow function 2016-02-03 06:43:40 +01:00
.gitignore Update num-macros to Rust master 2015-05-14 10:19:47 -07:00
.multirust.sh Add a simple multirust script for local "CI" 2015-12-21 12:26:32 -08:00
.travis.yml Fix travis on non-nightly 2015-11-18 22:12:19 -08:00
Cargo.toml Publish num 0.1.30 2016-01-08 15:22:54 -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 Update intros to better reflect the breadth of num 2015-11-21 16:39:00 -08:00

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.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
num = "0.1"

and this to your crate root:

extern crate num;