Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement