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

Method swap_remove

crates/common/src/boxvec.rs:145–148  ·  view source on GitHub ↗
(&mut self, index: usize)

Source from the content-addressed store, hash-verified

143 }
144
145 pub fn swap_remove(&mut self, index: usize) -> T {
146 self.swap_pop(index)
147 .unwrap_or_else(|| panic_oob!("swap_remove", index, self.len()))
148 }
149
150 pub fn swap_pop(&mut self, index: usize) -> Option<T> {
151 let len = self.len();

Callers 12

deleteMethod · 0.80
from_argsMethod · 0.80
slot_initMethod · 0.80
take_keywordMethod · 0.80
pop_kwargMethod · 0.80
_clear_type_descriptorsFunction · 0.80
py_newMethod · 0.80
slot_newMethod · 0.80
set___annotate__Method · 0.80
set___annotations__Method · 0.80
set___module__Method · 0.80
inline_comprehensionFunction · 0.80

Calls 1

swap_popMethod · 0.80

Tested by

no test coverage detected