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

Method unpack_mut

crates/table/src/pointer_map.rs:115–121  ·  view source on GitHub ↗

Convert the packed representation into an unpacked one.

(&mut self)

Source from the content-addressed store, hash-verified

113
114 /// Convert the packed representation into an unpacked one.
115 fn unpack_mut(&mut self) -> MapSlotMut<'_> {
116 if self.is_ptr() {
117 MapSlotMut::Pointer(&mut self.0)
118 } else {
119 MapSlotMut::Collider(self.as_collider())
120 }
121 }
122}
123
124impl From<ColliderSlotIndex> for PtrOrCollider {

Callers 1

pointers_for_mutMethod · 0.80

Calls 2

is_ptrMethod · 0.80
as_colliderMethod · 0.80

Tested by

no test coverage detected