Trait Log2

Source
pub trait Log2 {
    // Required method
    fn log2_(self) -> Self;
}
Expand description

This trait provides the interface for the base 2 logarithm function.

Required Methods§

Source

fn log2_(self) -> Self

Computes the base 2 logarithm of self, rounding to the nearest.

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 Log2 for f64

Source§

fn log2_(self) -> Self

Computes the base 2 logarithm of self, rounding to the nearest.

Source§

impl Log2 for Complex<f64>

Source§

fn log2_(self) -> Self

Computes the base 2 logarithm of self, rounding to the nearest.

Implementors§