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

Method pointers_for

crates/table/src/table.rs:1056–1058  ·  view source on GitHub ↗

Returns the list of pointers to rows which hash to `row_hash`. If `self` does not have a [`PointerMap`], always returns the empty slice.

(&self, row_hash: RowHash)

Source from the content-addressed store, hash-verified

1054 ///
1055 /// If `self` does not have a [`PointerMap`], always returns the empty slice.
1056 fn pointers_for(&self, row_hash: RowHash) -> &[RowPointer] {
1057 self.pointer_map.as_ref().map_or(&[], |pm| pm.pointers_for(row_hash))
1058 }
1059
1060 /// Using the [`PointerMap`],
1061 /// searches `target_table` for a row equal to `needle_table[needle_ptr]`.

Callers 1

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected