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

Method parent

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

Source from the content-addressed store, hash-verified

83 }
84
85 pub fn parent(node: Option<NonNull<Self>>) -> Option<NonNull<Self>> {
86 unsafe { node.and_then(|node| node.as_ref().parent) }
87 }
88
89 pub fn sibling(node: Option<NonNull<Self>>) -> Option<NonNull<Self>> {
90 unsafe {

Callers 11

succFunction · 0.80
predFunction · 0.80
insert_fixFunction · 0.80
rotate_leftFunction · 0.80
rotate_rightFunction · 0.80
new_parentMethod · 0.80
replaceMethod · 0.80
i_am_leftMethod · 0.80
i_am_rightMethod · 0.80
grandparentMethod · 0.80
setup_new_maxFunction · 0.80

Calls 1

parentFunction · 0.85

Tested by

no test coverage detected