Implement `Hash` for `NodeId`
Delta semántico
Ninguna definición cambió: el cambio es de texto, documentación o datos.
1 archivos · +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