Skip to main content

LogBasePowerOf2

Trait LogBasePowerOf2 

Source
pub trait LogBasePowerOf2<POW> {
    type Output;

    // Required method
    fn log_base_power_of_2(self, pow: POW) -> Self::Output;
}
Expand description

Calculates the base-$2^k$ logarithm of a number.

Required Associated Types§

Required Methods§

Source

fn log_base_power_of_2(self, pow: POW) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§