Function std::num::next_power_of_two[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.