mulch::math

Trait PowerOfTwoable

Source
pub trait PowerOfTwoable {
    // Required methods
    fn is_power_of_two(self) -> bool;
    fn next_power_of_two(self) -> Self;
}

Required Methods§

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 PowerOfTwoable for u8

Source§

impl PowerOfTwoable for u16

Source§

impl PowerOfTwoable for u32

Source§

impl PowerOfTwoable for u64

Source§

impl PowerOfTwoable for usize

Implementors§