MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / get_mut

Method get_mut

crates/core/src/host/wasm_common.rs:327–329  ·  view source on GitHub ↗
(&mut self, handle: I)

Source from the content-addressed store, hash-verified

325 }
326
327 pub fn get_mut(&mut self, handle: I) -> Option<&mut I::Resource> {
328 self.slab.get_mut(handle.to_u32() as usize)
329 }
330
331 pub fn take(&mut self, handle: I) -> Option<I::Resource> {
332 self.slab.try_remove(handle.to_u32() as usize)

Callers 15

compress_with_tagMethod · 0.45
deref_slice_mutMethod · 0.45
bytes_source_readMethod · 0.45
bytes_sink_writeMethod · 0.45
row_iter_bsatn_advanceFunction · 0.45
datastore_insert_bsatnFunction · 0.45
datastore_update_bsatnFunction · 0.45
row_iter_bsatn_advanceFunction · 0.45
eval_deltaFunction · 0.45
remove_queryMethod · 0.45
delete_index_idMethod · 0.45

Calls 1

to_u32Method · 0.80

Tested by

no test coverage detected