pub trait LogBase2 {
type Output;
// Required method
fn log_base_2(self) -> Self::Output;
}Expand description
Calculates the base-2 logarithm of a number.
Required Associated Types§
Required Methods§
fn log_base_2(self) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".