diff --git a/src/map/hash_trie_map/mod.rs b/src/map/hash_trie_map/mod.rs index c20ec7c..ce4e3bd 100644 --- a/src/map/hash_trie_map/mod.rs +++ b/src/map/hash_trie_map/mod.rs @@ -855,7 +855,7 @@ where /// /// This would return true if you’re comparing a map to itself, /// or if you’re comparing a map to a fresh clone of itself. - pub(crate) fn ptr_eq( + pub fn ptr_eq( &self, other: &HashTrieMap, ) -> bool { diff --git a/src/map/red_black_tree_map/mod.rs b/src/map/red_black_tree_map/mod.rs index 81d3a18..4eff321 100644 --- a/src/map/red_black_tree_map/mod.rs +++ b/src/map/red_black_tree_map/mod.rs @@ -904,7 +904,7 @@ where /// /// This would return true if you’re comparing a map to itself, /// or if you’re comparing a map to a fresh clone of itself. - pub(crate) fn ptr_eq(&self, other: &RedBlackTreeMap) -> bool { + pub fn ptr_eq(&self, other: &RedBlackTreeMap) -> bool { let a = self.root.as_ref().map_or(core::ptr::null(), SharedPointer::as_ptr); // Note how we're casting the raw pointer changing from P to PO // We cannot perform the equality in a type safe way because the root type depends diff --git a/src/set/hash_trie_set/mod.rs b/src/set/hash_trie_set/mod.rs index 66e910a..8624139 100644 --- a/src/set/hash_trie_set/mod.rs +++ b/src/set/hash_trie_set/mod.rs @@ -214,7 +214,7 @@ where /// /// This would return true if you’re comparing a set to itself, /// or if you’re comparing a set to a fresh clone of itself. - fn ptr_eq( + pub fn ptr_eq( &self, other: &HashTrieSet, ) -> bool { diff --git a/src/set/red_black_tree_set/mod.rs b/src/set/red_black_tree_set/mod.rs index 3a22a29..955ba4c 100644 --- a/src/set/red_black_tree_set/mod.rs +++ b/src/set/red_black_tree_set/mod.rs @@ -216,7 +216,7 @@ where /// /// This would return true if you’re comparing a set to itself, /// or if you’re comparing a set to a fresh clone of itself. - fn ptr_eq(&self, other: &RedBlackTreeSet) -> bool { + pub fn ptr_eq(&self, other: &RedBlackTreeSet) -> bool { self.map.ptr_eq(&other.map) }