MCPcopy Create free account
hub / github.com/douchuan/algorithm / set_children

Method set_children

src/tree/binary/node.rs:160–163  ·  view source on GitHub ↗
(&mut self, l: Option<NonNull<Node<K, V>>>, r: Option<NonNull<Node<K, V>>>)

Source from the content-addressed store, hash-verified

158 }
159
160 pub fn set_children(&mut self, l: Option<NonNull<Node<K, V>>>, r: Option<NonNull<Node<K, V>>>) {
161 self.set_left(l);
162 self.set_right(r);
163 }
164
165 pub fn replace(&mut self, node: Option<NonNull<Node<K, V>>>) {
166 if self.parent().is_none() {

Callers 2

rotate_leftFunction · 0.80
rotate_rightFunction · 0.80

Calls 2

set_leftMethod · 0.45
set_rightMethod · 0.45

Tested by

no test coverage detected