libstd: impl Num for BigUint/BigInt

This commit is contained in:
gifnksm
2013-05-14 18:14:45 +09:00
parent 5a2f65fb50
commit 5ce0795de5
+4
View File
@@ -144,6 +144,8 @@ fn from_str(s: &str) -> Option<BigUint> {
}
}
impl Num for BigUint {}
impl Shl<uint, BigUint> for BigUint {
#[inline(always)]
fn shl(&self, rhs: &uint) -> BigUint {
@@ -788,6 +790,8 @@ fn from_str(s: &str) -> Option<BigInt> {
}
}
impl Num for BigInt {}
impl Shl<uint, BigInt> for BigInt {
#[inline(always)]
fn shl(&self, rhs: &uint) -> BigInt {