Find the child index and `NodeRef` for `key` in the specified branch, returning `None` if the branch does not exist or index is out of range.
(&self, branch_id: NodeId, key: &K)
| 217 | /// Find the child index and `NodeRef` for `key` in the specified branch, |
| 218 | /// returning `None` if the branch does not exist or index is out of range. |
| 219 | pub fn find_child(&self, branch_id: NodeId, key: &K) -> Option<(usize, NodeRef<K, V>)> { |
| 220 | self.get_branch(branch_id).and_then(|branch| { |
| 221 | let idx = branch.find_child_index(key); |
| 222 | branch.children.get(idx).cloned().map(|child| (idx, child)) |
| 223 | }) |
| 224 | } |
| 225 | |
| 226 | /// Mutable version of `find_child`. |
| 227 | pub fn find_child_mut(&mut self, branch_id: NodeId, key: &K) -> Option<(usize, NodeRef<K, V>)> { |
nothing calls this directly
no test coverage detected