Trait radians::ops::Pow

source ·
pub trait Pow: Sized + Copy {
    // Required methods
    fn powf(self, n: Self) -> Self;
    fn powi(self, n: i32) -> Self;
    fn recip(self) -> Self;
    fn sqrt(self) -> Self;
    fn cbrt(self) -> Self;
    fn hypot(self, other: Self) -> Self;
}
Expand description

Trait for raising a floating point number to a power, and inverse operations.

Required Methods§

source

fn powf(self, n: Self) -> Self

source

fn powi(self, n: i32) -> Self

source

fn recip(self) -> Self

source

fn sqrt(self) -> Self

source

fn cbrt(self) -> Self

source

fn hypot(self, other: Self) -> Self

Implementations on Foreign Types§

source§

impl Pow for f32

source§

fn powf(self, n: f32) -> f32

source§

fn powi(self, n: i32) -> f32

source§

fn recip(self) -> f32

source§

fn sqrt(self) -> f32

source§

fn cbrt(self) -> f32

source§

fn hypot(self, other: f32) -> f32

source§

impl Pow for f64

source§

fn powf(self, n: f64) -> f64

source§

fn powi(self, n: i32) -> f64

source§

fn recip(self) -> f64

source§

fn sqrt(self) -> f64

source§

fn cbrt(self) -> f64

source§

fn hypot(self, other: f64) -> f64

Implementors§