Skip to main content

LogBase

Trait LogBase 

Source
pub trait LogBase<B = Self> {
    type Output;

    // Required method
    fn log_base(self, base: B) -> Self::Output;
}
Expand description

Calculates the base-$b$ logarithm of a number, rounding the (generally irrational) result.

Required Associated Types§

Required Methods§

Source

fn log_base(self, base: B) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§