mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
libstd: impl Num for BigUint/BigInt
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user