Skip to main content

PowOps

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PowOps for f32

Source§

type Float = f32

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

Source§

impl PowOps for f64

Source§

type Float = f64

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

Implementors§