pub trait Pow {
// Required method
fn pow(&self, n: Self) -> Self;
}
Expand description
A trait created to represent raising an element
to a given power.
This explicitly relies on the powf
trait
and thus will only work for types that implement
that trait
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.