Implement `Hash` for `NodeId`
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
1 qillqakuna · +1 −1
- src/tree/node.rs +1 −1
diff --git a/src/tree/node.rs b/src/tree/node.rs
index 0eea96c3b..78e785e97 100644
--- a/src/tree/node.rs
+++ b/src/tree/node.rs
@@ -12,7 +12,7 @@ use slotmap::{DefaultKey, Key, KeyData};
///
/// Internally it is a wrapper around a u64 and a `NodeId` can be converted to and from
/// and u64 if needed.
-#[derive(Copy, Clone, Debug, PartialEq, Eq)]
+#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct NodeId(u64);
impl NodeId {
/// Create a new NodeId from a u64 value