pub trait UnsignedPow {
// Required method
fn unsigned_pow(self, exp: u32) -> Self;
}
Expand description
Exponentiation.
Enables being generic over integers which can be exponentiated. Why must we do this, standard library?
Required Methods§
Sourcefn unsigned_pow(self, exp: u32) -> Self
fn unsigned_pow(self, exp: u32) -> Self
Raises self
to the power of exp
.
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.