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

Method is_black

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

Source from the content-addressed store, hash-verified

213 }
214
215 pub fn is_black(&self) -> bool {
216 !self.is_red()
217 }
218
219 pub fn child_count(&self) -> usize {
220 self.node.map_or(0, Node::children_count)

Callers

nothing calls this directly

Calls 1

is_redMethod · 0.80

Tested by

no test coverage detected