pub trait PowF<Index: FloatingNumber = Self>: Sizedwhere
for<'a> &'a Index: Reciprocal<Output = Index>,{
type Output: FloatingNumber;
// Required method
fn powf(self, index: &Index) -> Option<Self::Output>;
// Provided methods
fn sqrt(self) -> Option<Self::Output> { ... }
fn cbrt(self) -> Option<Self::Output> { ... }
}Required Associated Types§
type Output: FloatingNumber
Required Methods§
Provided 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.