Skip to main content
is_power_of_two
bit_
manipulation
0.1.0
bit_manipulation
Function
is_
power_
of_
two
Copy item path
Source
pub fn is_power_of_two(x:
u64
) ->
bool
Expand description
True iff
x
is a (positive) power of two.