Function round_up

Source
pub fn round_up<T>(
    value: T,
    round_to: T,
) -> <T as Add<<<T as Sub<<T as Rem>::Output>>::Output as Rem<T>>::Output>>::Output
where T: Copy + Rem<T> + Sub<<T as Rem>::Output> + Add<<<T as Sub<<T as Rem>::Output>>::Output as Rem<T>>::Output>, <T as Sub<<T as Rem>::Output>>::Output: Rem<T>,
Expand description

Round value to the next multiple of round_to, unless it already is a multiple.