Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions consumer/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ impl NodeId {
pub(crate) fn to_components(self) -> (LocalNodeId, TreeIndex) {
(self.1, self.0)
}

/// Returns the local node ID, i.e. the [`accesskit::NodeId`].
pub fn local_id(self) -> LocalNodeId {
self.1
}
}

impl From<NodeId> for u128 {
Expand Down