c6163dac40
For example, the following will print (4294967295, 65535): extern crate num; use num::traits::Bounded; fn main() { let t : (u32, u16) = Bounded::max_value(); println!("{:?}", t); } |
||
---|---|---|
benches | ||
src | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
num
Arbitrary sized numeric types for Rust.
Usage
Add this to your Cargo.toml
:
[dependencies]
num = "*"
and this to your crate root:
extern crate num;