pub fn vnode(range: &TableKeyRange) -> VirtualNode
Expand description
Ensure there is only one vnode involved in table key range and return the vnode.
ยงVnode count unawareness
Note that this function is not aware of the vnode count that is actually used in this table.
For example, if the total vnode count is 256, Unbounded
can be a correct end bound for vnode 255,
but this function will still require Excluded(256)
.
See also vnode_range
and end_bound_of_vnode
which hold such invariant.