1 2 3 4 5 6 7 8 9 10 11 12 13
Returns `true` if and only if `self == 2^k` for some unsigned integer `k`. # Examples Basic usage: ``` # use ::exint::primitive::*; # ::exint::uint! { assert!(16_u24.is_power_of_two()); assert!(!10_u24.is_power_of_two()); # } ```