Trait ibig::NextPowerOfTwo[][src]

pub trait NextPowerOfTwo {
    type Output;
    fn next_power_of_two(self) -> Self::Output;
}

Next power of two.

Examples

assert_eq!(ubig!(5).next_power_of_two(), ubig!(8));

Associated Types

Loading content...

Required methods

fn next_power_of_two(self) -> Self::Output[src]

Loading content...

Implementors

Loading content...