From 1380fb40f052526ffaed87e16d03addf3c5fca5d Mon Sep 17 00:00:00 2001 From: hasezoey Date: Tue, 18 Nov 2025 17:59:15 +0100 Subject: [PATCH] feat(tree_node_idx::NodeIdx): implement "Hash" --- src/tree_node_idx.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tree_node_idx.rs b/src/tree_node_idx.rs index 132addd..bb9a629 100644 --- a/src/tree_node_idx.rs +++ b/src/tree_node_idx.rs @@ -284,6 +284,12 @@ impl NodeIdx { } } +impl core::hash::Hash for NodeIdx { + fn hash(&self, state: &mut H) { + self.0.hash(state); + } +} + impl Clone for NodeIdx { fn clone(&self) -> Self { Self(self.0.clone())