Function ceildiv

Source
fn ceildiv(a: usize, b: usize) -> usize
Expand description

Calculates the ceiling of the division of two unsigned integers.

This function takes two parameters, a and b, both of the type usize, and returns the smallest integer greater than or equal to the result of dividing a by b. It utilizes the div_ceil method to perform the calculation, which inherently manages any need to round up the result of the division when a is not perfectly divisible by b. This function is useful in scenarios where precise ceiling division is required.