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

Method right_subtree

code/chapter07/avl.rs:175–180  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

173 }
174
175 fn right_subtree(&mut self) -> &mut Self {
176 match *self {
177 Null => panic!("Empty tree"),
178 Tree(ref mut node) => &mut node.right,
179 }
180 }
181
182 // 左右旋
183 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