pub const fn increase_to_alignment(size: usize) -> usize
Expand description
Increases the given size to the next alignment boundary, if it is not a multiple of the alignment yet.
This is relevant as in Rust’s type layout, the allocated size of a type is always a multiple of the alignment, even if the type is smaller.