Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ clear
Method
clear
crates/vm/src/stdlib/_collections.rs:92–95 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
90
91
#[pymethod]
92
fn clear(&self) {
93
self.state.fetch_add(1);
94
self.borrow_deque_mut().clear()
95
}
96
97
#[pymethod(name =
"__copy__"
)]
98
#[pymethod]
Callers
9
strftime_crt
Function · 0.45
__setstate__
Method · 0.45
_extend
Method · 0.45
extendleft
Method · 0.45
init
Method · 0.45
_clear
Function · 0.45
__setstate__
Method · 0.45
cleanup_thread_local_data
Function · 0.45
restart_events
Function · 0.45
Calls
1
borrow_deque_mut
Method · 0.80
Tested by
no test coverage detected