Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astral-sh/ruff
/ new
Method
new
crates/ruff_python_parser/src/parser/scratch_buffer.rs:13–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
12
impl<T> ScratchBuffer<T> {
13
pub(super) fn new() -> Self {
14
Self { buffer: Vec::new() }
15
}
16
17
pub(super) fn with_capacity(capacity: usize) -> Self {
18
Self {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected