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

Method as_collider

crates/table/src/pointer_map.rs:101–103  ·  view source on GitHub ↗

Assumes that `self` is a `ColliderSlotIndex` and returns it as such.

(&self)

Source from the content-addressed store, hash-verified

99
100 /// Assumes that `self` is a `ColliderSlotIndex` and returns it as such.
101 const fn as_collider(&self) -> ColliderSlotIndex {
102 ColliderSlotIndex(self.0.page_index().0 as u32)
103 }
104
105 /// Convert the packed representation into an unpacked one.
106 const fn unpack(&self) -> MapSlotRef<'_> {

Callers 2

unpackMethod · 0.80
unpack_mutMethod · 0.80

Calls 2

ColliderSlotIndexClass · 0.85
page_indexMethod · 0.80

Tested by

no test coverage detected