Trait NextPowerOfTwo
ibig
pub trait NextPowerOfTwo { type Output; fn next_power_of_two(self) -> Self::Output; }
Next power of two.
assert_eq!(ubig!(5).next_power_of_two(), ubig!(8));
type Output
fn next_power_of_two(self) -> Self::Output
impl NextPowerOfTwo for &UBig
type Output = UBig
fn next_power_of_two(self) -> UBig
impl NextPowerOfTwo for UBig