MCPcopy Index your code
hub / github.com/RustPython/RustPython / reverse

Method reverse

crates/vm/src/builtins/list.rs:260–262  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

258
259 #[pymethod]
260 fn reverse(&self) {
261 self.borrow_vec_mut().reverse();
262 }
263
264 #[pymethod]
265 fn __reversed__(zelf: PyRef<Self>) -> PyListReverseIterator {

Callers 4

do_slice_reverseMethod · 0.45
rsplitMethod · 0.45
rsplitMethod · 0.45
do_slice_reverseMethod · 0.45

Calls 1

borrow_vec_mutMethod · 0.80

Tested by

no test coverage detected