Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ clear
Method
clear
crates/vm/src/builtins/tuple.rs:52–55 ·
view source on GitHub ↗
(&mut self, out: &mut Vec<PyObjectRef>)
Source
from the content-addressed store, hash-verified
50
}
51
52
fn clear(&mut self, out: &mut Vec<PyObjectRef>) {
53
let elements = core::mem::take(&mut self.elements);
54
out.extend(elements.into_vec());
55
}
56
}
57
58
// spell-checker:ignore MAXSAVESIZE
Callers
nothing calls this directly
Calls
3
take
Function · 0.85
extend
Method · 0.45
into_vec
Method · 0.45
Tested by
no test coverage detected