Trait peroxide::prelude::ExpLogOps

pub trait ExpLogOps: Sized {
    type Float;

    // Required methods
    fn exp(&self) -> Self;
    fn ln(&self) -> Self;
    fn log(&self, base: Self::Float) -> Self;
    fn log2(&self) -> Self;
    fn log10(&self) -> Self;
}

Required Associated Types§

type Float

Required Methods§

fn exp(&self) -> Self

fn ln(&self) -> Self

fn log(&self, base: Self::Float) -> Self

fn log2(&self) -> Self

fn log10(&self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl ExpLogOps for f32

§

type Float = f32

§

fn exp(&self) -> f32

§

fn ln(&self) -> f32

§

fn log(&self, base: <f32 as ExpLogOps>::Float) -> f32

§

fn log2(&self) -> f32

§

fn log10(&self) -> f32

§

impl ExpLogOps for f64

§

type Float = f64

§

fn exp(&self) -> f64

§

fn ln(&self) -> f64

§

fn log(&self, base: <f64 as ExpLogOps>::Float) -> f64

§

fn log2(&self) -> f64

§

fn log10(&self) -> f64

Implementors§