ExpLogOps

Trait ExpLogOps 

Source
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§

Required Methods§

Source

fn exp(&self) -> Self

Source

fn ln(&self) -> Self

Source

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

Source

fn log2(&self) -> Self

Source

fn log10(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ExpLogOps for f32

Source§

type Float = f32

Source§

fn exp(&self) -> Self

Source§

fn ln(&self) -> Self

Source§

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

Source§

fn log2(&self) -> Self

Source§

fn log10(&self) -> Self

Source§

impl ExpLogOps for f64

Source§

type Float = f64

Source§

fn exp(&self) -> Self

Source§

fn ln(&self) -> Self

Source§

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

Source§

fn log2(&self) -> Self

Source§

fn log10(&self) -> Self

Implementors§