Last active
April 12, 2019 05:12
-
-
Save kunigami/851609046b588ef19e2306061edc4d08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct NodePtr<K: Ord, V>(*mut RBTreeNode<K, V>); | |
... | |
pub struct RBTree<K: Ord, V> { | |
root: NodePtr<K, V>, | |
... | |
} | |
... | |
// in find_node_with_visitor() | |
let mut temp = &self.root; | |
let key = &(*temp.0).key; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment