pub trait Pow: Sized {
// Required method
fn pow(self, exp: u32) -> Self;
}
Expand description
Performs power (self ^ exp). Maps directly to the underlaying integer method.
§Panics
Panics if the calculation overflows.
Required Methods§
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.