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

Method new

crates/table/src/pointer_map.rs:33–35  ·  view source on GitHub ↗

Returns a new slot index based on `idx`.

(idx: usize)

Source from the content-addressed store, hash-verified

31impl ColliderSlotIndex {
32 /// Returns a new slot index based on `idx`.
33 fn new(idx: usize) -> Self {
34 Self(idx as u32)
35 }
36
37 /// Returns the index as a `usize`.
38 fn idx(self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected