Trait peroxide::fuga::PowOps

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§

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl PowOps for f32

§

type Float = f32

§

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

§

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

§

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

§

fn sqrt(&self) -> f32

§

impl PowOps for f64

§

type Float = f64

§

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

§

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

§

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

§

fn sqrt(&self) -> f64

Implementors§