Function core::num::next_power_of_twoExperimental [-]  [+] [src]

pub fn next_power_of_two<T: Unsigned + Int>(n: T) -> T

Returns the smallest power of 2 greater than or equal to n.