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

Method remove

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

Source from the content-addressed store, hash-verified

157 }
158
159 pub fn remove(&mut self, index: usize) -> T {
160 self.pop_at(index)
161 .unwrap_or_else(|| panic_oob!("remove", index, self.len()))
162 }
163
164 pub fn pop_at(&mut self, index: usize) -> Option<T> {
165 if index >= self.len() {

Callers 10

destroyMethod · 0.45
unwind_fblock_stackMethod · 0.45
compile_pattern_orMethod · 0.45
peephole_optimizeMethod · 0.45
gen_impl_itemMethod · 0.45
try_remove_nameMethod · 0.45
parse_fieldsFunction · 0.45
gen_module_itemMethod · 0.45

Calls 1

pop_atMethod · 0.80

Tested by

no test coverage detected