pub trait PowerOfTwoable {
// Required methods
fn is_power_of_two(self) -> bool;
fn next_power_of_two(self) -> Self;
}
Required Methods§
fn is_power_of_two(self) -> bool
fn next_power_of_two(self) -> Self
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.