Function round_down

Source
pub fn round_down<T: Into<U>, U: Copy + Rem<U, Output = U> + Sub<U, Output = U>>(
    offset: U,
    block_size: T,
) -> U
Expand description

Round offset down to the previous multiple of block_size.