Download code/bugfind/bench/kernels/bytes_reserve/post/src/lib.rs from viai957/align: direct link, hf CLI and curl.
- Browser
- Download file 187 Bytes
-
https://huggingface.co/viai957/align/resolve/main/code/bugfind/bench/kernels/bytes_reserve/post/src/lib.rs
- Command line
-
hf download hf://viai957/align/code/bugfind/bench/kernels/bytes_reserve/post/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/viai957/align/resolve/main/code/bugfind/bench/kernels/bytes_reserve/post/src/lib.rs
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, | |
| } | |
| } | |