Trait peroxide::fuga::PowOps

source ·
pub trait PowOps: Sized {
    type Float;

    // Required methods
    fn powi(&self, n: i32) -> Self;
    fn powf(&self, f: Self::Float) -> Self;
    fn pow(&self, f: Self) -> Self;
    fn sqrt(&self) -> Self;
}

Required Associated Types§

Required Methods§

source

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

source

fn powf(&self, f: Self::Float) -> Self

source

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

source

fn sqrt(&self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PowOps for f32

§

type Float = f32

source§

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

source§

fn powf(&self, f: <f32 as PowOps>::Float) -> f32

source§

fn pow(&self, f: f32) -> f32

source§

fn sqrt(&self) -> f32

source§

impl PowOps for f64

§

type Float = f64

source§

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

source§

fn powf(&self, f: <f64 as PowOps>::Float) -> f64

source§

fn pow(&self, f: f64) -> f64

source§

fn sqrt(&self) -> f64

Implementors§