Function std::collections::hash_map::raw_table::round_up_to_next [] [src]

fn round_up_to_next(unrounded: usize, target_alignment: usize) -> usize

Rounds up to a multiple of a power of two. Returns the closest multiple of target_alignment that is higher or equal to unrounded.

Panics

Panics if target_alignment is not a power of two.