diff options
| author | gifnksm <makoto.nksm+github@gmail.com> | 2013-05-14 18:14:45 +0900 |
|---|---|---|
| committer | gifnksm <makoto.nksm+github@gmail.com> | 2013-05-14 19:27:20 +0900 |
| commit | 5ce0795de51b5305bcb48e69a5fcf8cb2e169a30 (patch) | |
| tree | 337f54bd8784ecb54898a84ec2347078c0e25634 /src/libstd/num | |
| parent | 5a2f65fb5035627b8fb0b1ce0e927a492d55e3a4 (diff) | |
| download | rust-5ce0795de51b5305bcb48e69a5fcf8cb2e169a30.tar.gz rust-5ce0795de51b5305bcb48e69a5fcf8cb2e169a30.zip | |
libstd: impl Num for BigUint/BigInt
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/bigint.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/num/bigint.rs b/src/libstd/num/bigint.rs index 498c86dd8e1..53054afb4d2 100644 --- a/src/libstd/num/bigint.rs +++ b/src/libstd/num/bigint.rs @@ -144,6 +144,8 @@ impl FromStr for BigUint { } } +impl Num for BigUint {} + impl Shl<uint, BigUint> for BigUint { #[inline(always)] fn shl(&self, rhs: &uint) -> BigUint { @@ -788,6 +790,8 @@ impl FromStr for BigInt { } } +impl Num for BigInt {} + impl Shl<uint, BigInt> for BigInt { #[inline(always)] fn shl(&self, rhs: &uint) -> BigInt { |
