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

Method is_ptr

crates/table/src/pointer_map.rs:96–98  ·  view source on GitHub ↗

Returns whether this is a pointer or not.

(&self)

Source from the content-addressed store, hash-verified

94
95 /// Returns whether this is a pointer or not.
96 const fn is_ptr(&self) -> bool {
97 !self.0.reserved_bit()
98 }
99
100 /// Assumes that `self` is a `ColliderSlotIndex` and returns it as such.
101 const fn as_collider(&self) -> ColliderSlotIndex {

Callers 2

unpackMethod · 0.80
unpack_mutMethod · 0.80

Calls 1

reserved_bitMethod · 0.80

Tested by

no test coverage detected