pub trait ConstCheckedPow:
Sized
+ ConstOne
+ ConstCheckedMul {
// Required method
fn checked_pow(self, exp: u32) -> Option<Self>;
}Expand description
Const-compatible checked exponentiation.
Returns None if the result would overflow.
Required Methods§
Sourcefn checked_pow(self, exp: u32) -> Option<Self>
fn checked_pow(self, exp: u32) -> Option<Self>
Checked exponentiation. Computes self.pow(exp), returning None
if overflow occurred.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.