Function libparted::round_to_nearest[][src]

pub fn round_to_nearest(sector: i64, grain_size: i64) -> i64
Expand description

Rounds a number to the closest number that is a multiple of the grain_size.