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

Method reserve

crates/vm/src/stdlib/marshal.rs:147–152  ·  view source on GitHub ↗
(&mut self, obj: &PyObjectRef)

Source from the content-addressed store, hash-verified

145 }
146 }
147 fn reserve(&mut self, obj: &PyObjectRef) -> u32 {
148 let idx = self.next_idx;
149 self.map.insert(obj.get_id(), idx);
150 self.next_idx += 1;
151 idx
152 }
153 }
154
155 fn write_object(

Callers 4

imulMethod · 0.45
write_object_depthFunction · 0.45
read_allMethod · 0.45
append_toMethod · 0.45

Calls 2

insertMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected