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

Method unpack

crates/table/src/pointer_map.rs:106–112  ·  view source on GitHub ↗

Convert the packed representation into an unpacked one.

(&self)

Source from the content-addressed store, hash-verified

104
105 /// Convert the packed representation into an unpacked one.
106 const fn unpack(&self) -> MapSlotRef<'_> {
107 if self.is_ptr() {
108 MapSlotRef::Pointer(&self.0)
109 } else {
110 MapSlotRef::Collider(self.as_collider())
111 }
112 }
113
114 /// Convert the packed representation into an unpacked one.
115 fn unpack_mut(&mut self) -> MapSlotMut<'_> {

Callers 4

poc_pointersMethod · 0.45
insertMethod · 0.45
removeMethod · 0.45
download_and_installFunction · 0.45

Calls 2

is_ptrMethod · 0.80
as_colliderMethod · 0.80

Tested by

no test coverage detected