4951e76
1
2
3
4
5
6
7
pub fn reserve_fits(v_capacity: usize, new_cap: usize, offset: usize) -> bool { match new_cap.checked_add(offset) { Some(s) => v_capacity >= s, None => false, } }