pub fn end_bound_of_vnode(vnode: VirtualNode) -> Bound<Bytes>
Expand description
Unbounded
if the vnode is the maximum representable value (i.e. VirtualNode::MAX_REPRESENTABLE
),
otherwise Excluded
the next vnode.
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 return Excluded(256)
. See also vnode
and vnode_range
which
rely on such invariant.