pub struct NodeId(pub u64);Expand description
Packed node identifier. See the module docs for the bit layout.
Tuple Fields§
§0: u64Implementations§
Source§impl NodeId
impl NodeId
Sourcepub fn new(table: TableId, group: NodeGroupId, row: NodeOffset) -> Self
pub fn new(table: TableId, group: NodeGroupId, row: NodeOffset) -> Self
Packs the three components. Debug-asserts that each fits its field.
pub fn table(self) -> TableId
pub fn group(self) -> NodeGroupId
pub fn row(self) -> NodeOffset
Trait Implementations§
impl Copy for NodeId
impl Eq for NodeId
Source§impl Ord for NodeId
impl Ord for NodeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Forget for NodeId
impl Freeze for NodeId
impl Move for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnsafeUnpin for NodeId
impl UnwindSafe for NodeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more