We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914c3be commit fc6975eCopy full SHA for fc6975e
packages/std/src/math/uint256.rs
@@ -211,8 +211,7 @@ impl Uint256 {
211
}
212
213
pub fn pow(self, exp: u32) -> Self {
214
- self.checked_pow(exp)
215
- .expect("attempt to raise to a power with overflow")
+ unimplemented!()
216
217
218
pub fn checked_add(self, other: Self) -> Result<Self, OverflowError> {
packages/std/src/math/uint512.rs
@@ -309,6 +309,10 @@ impl Uint512 {
309
self.0.is_zero()
310
311
312
+ pub fn pow(self, exp: u32) -> Self {
313
314
+ }
315
+
316
317
self.0
318
.checked_add(other.0)
0 commit comments