Trait poplar_util::math::PowerOfTwoable

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

Required Methods§

Object Safety§

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§