Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
imul
Method · 0.45
write_object_depth
Function · 0.45
read_all
Method · 0.45
append_to
Method · 0.45
Calls
2
insert
Method · 0.45
get_id
Method · 0.45
Tested by
no test coverage detected