Trait Pow

Source
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§

Source

fn pow(&self, n: Self) -> Self

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.

Implementations on Foreign Types§

Source§

impl Pow for f32

Source§

fn pow(&self, n: Self) -> Self

Source§

impl Pow for f64

Source§

fn pow(&self, n: Self) -> Self

Implementors§