Function how_many

Source
pub fn how_many<T: Into<u64>>(value: u64, item_size: T) -> u64
Expand description

Returns how many items of a given size are needed to contain a value.

TODO(https://github.com/rust-lang/rust/issues/88581): Replace with {integer}::div_ceil() when int_roundings is available.