viai957's picture
Add files using upload-large-folder tool
4951e76 verified
Raw History Blame Contribute Delete
187 Bytes
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,
}
}