Trait numcodecs_log::Float

source ·
pub trait Float: Copy {
    // Required methods
    fn ln(self) -> Self;
    fn exp(self) -> Self;
    fn is_positive(self) -> bool;
    fn is_finite(self) -> bool;
}
Expand description

Floating point types.

Required Methods§

source

fn ln(self) -> Self

Returns ln(self), the natural logarithm.

source

fn exp(self) -> Self

Returns exp(self).

source

fn is_positive(self) -> bool

Returns true if this number is positive.

source

fn is_finite(self) -> bool

Returns true if this number is neither infinite nor NaN.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Float for f32

source§

fn ln(self) -> Self

source§

fn exp(self) -> Self

source§

fn is_positive(self) -> bool

source§

fn is_finite(self) -> bool

source§

impl Float for f64

source§

fn ln(self) -> Self

source§

fn exp(self) -> Self

source§

fn is_positive(self) -> bool

source§

fn is_finite(self) -> bool

Implementors§