cap_limits_to_be_under_the_sum_limit

Function cap_limits_to_be_under_the_sum_limit 

Source
pub fn cap_limits_to_be_under_the_sum_limit<const N: usize>(
    limits: [&mut u32; N],
    sum_limit: u32,
)
Expand description

Evenly allocates space to each limit, capping them only if strictly necessary.