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

Method is_red

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

Source from the content-addressed store, hash-verified

209 }
210
211 pub fn is_red(&self) -> bool {
212 self.color() == Some(Color::Red)
213 }
214
215 pub fn is_black(&self) -> bool {
216 !self.is_red()

Callers 13

delete_minMethod · 0.80
delete_maxMethod · 0.80
deleteMethod · 0.80
del_minFunction · 0.80
del_maxFunction · 0.80
deleteFunction · 0.80
balanceFunction · 0.80
counterFunction · 0.80
move_red_leftFunction · 0.80
move_red_rightFunction · 0.80
is23Function · 0.80
calc_blacksFunction · 0.80

Calls 1

colorMethod · 0.45

Tested by

no test coverage detected