pub trait FloatPow {
// Required methods
fn squared(self) -> Self;
fn cubed(self) -> Self;
}Expand description
This extension trait covers shortfall in determinacy from the lack of a libm counterpart
to f32::powi. Use this for the common small exponents.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".