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§
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".