Skip to content

Commit 5ce0795

Browse files
committed
libstd: impl Num for BigUint/BigInt
1 parent 5a2f65f commit 5ce0795

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/num/bigint.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ impl FromStr for BigUint {
144144
}
145145
}
146146

147+
impl Num for BigUint {}
148+
147149
impl Shl<uint, BigUint> for BigUint {
148150
#[inline(always)]
149151
fn shl(&self, rhs: &uint) -> BigUint {
@@ -788,6 +790,8 @@ impl FromStr for BigInt {
788790
}
789791
}
790792

793+
impl Num for BigInt {}
794+
791795
impl Shl<uint, BigInt> for BigInt {
792796
#[inline(always)]
793797
fn shl(&self, rhs: &uint) -> BigInt {

0 commit comments

Comments
 (0)