Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ resize_buf
Function
resize_buf
crates/stdlib/src/csv.rs:416–419 ·
view source on GitHub ↗
(buf: &mut Vec<T>)
Source
from the content-addressed store, hash-verified
414
415
#[inline]
416
fn resize_buf<T: num_traits::PrimInt>(buf: &mut Vec<T>) {
417
let new_size = buf.len() * 2;
418
buf.resize(new_size, T::zero());
419
}
420
421
#[repr(i32)]
422
#[derive(Debug, Clone, Copy)]
Callers
1
next
Method · 0.85
Calls
2
len
Method · 0.45
resize
Method · 0.45
Tested by
no test coverage detected