pub fn cap_limits_to_be_under_the_sum_limit<const N: usize>( limits: [&mut u32; N], sum_limit: u32, )
Evenly allocates space to each limit, capping them only if strictly necessary.