is_power_of_2

Function is_power_of_2 

Source
pub fn is_power_of_2(x: u16) -> bool
Expand description

Returns true if x is a power of 2.