MCPcopy Index your code
hub / github.com/douchuan/algorithm / right

Method right

src/tree/binary/node.rs:81–83  ·  view source on GitHub ↗
(node: Option<NonNull<Self>>)

Source from the content-addressed store, hash-verified

79 }
80
81 pub fn right(node: Option<NonNull<Self>>) -> Option<NonNull<Self>> {
82 unsafe { node.and_then(|node| node.as_ref().right) }
83 }
84
85 pub fn parent(node: Option<NonNull<Self>>) -> Option<NonNull<Self>> {
86 unsafe { node.and_then(|node| node.as_ref().parent) }

Callers 15

insertFunction · 0.45
succFunction · 0.45
is_bstFunction · 0.45
keysFunction · 0.45
delete_minMethod · 0.45
delete_maxMethod · 0.45
deleteMethod · 0.45
putFunction · 0.45
del_maxFunction · 0.45
deleteFunction · 0.45
rotate_leftFunction · 0.45
rotate_rightFunction · 0.45

Calls 1

rightFunction · 0.85

Tested by

no test coverage detected