MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / right_subtree

Method right_subtree

publication/code/chapter08/avl.rs:188–193  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

186 }
187
188 fn right_subtree(&mut self) -> &mut Self {
189 match self {
190 Null => panic!("Error: Empty tree!"),
191 Tree(node) => &mut node.right,
192 }
193 }
194
195 // 左右旋
196 fn rotate_left(&mut self) {

Callers 2

rotate_leftMethod · 0.45
rotate_rightMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected