MCPcopy 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_crtFunction · 0.45
__setstate__Method · 0.45
_extendMethod · 0.45
extendleftMethod · 0.45
initMethod · 0.45
_clearFunction · 0.45
__setstate__Method · 0.45
restart_eventsFunction · 0.45

Calls 1

borrow_deque_mutMethod · 0.80

Tested by

no test coverage detected