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

Method i_am_left

src/tree/binary/node.rs:231–233  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

229 }
230
231 pub fn i_am_left(&self) -> bool {
232 self.is_some() && self.parent().left().node == self.node
233 }
234
235 pub fn i_am_right(&self) -> bool {
236 self.is_some() && self.parent().right().node == self.node

Callers 2

insert_fixFunction · 0.80
replaceMethod · 0.80

Calls 3

is_someMethod · 0.80
parentMethod · 0.80
leftMethod · 0.45

Tested by

no test coverage detected