libstd: impl Num for BigUint/BigInt

This commit is contained in:
gifnksm 2013-05-14 18:14:45 +09:00
parent 5a2f65fb50
commit 5ce0795de5

View File

@ -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 {