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

Method color

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

Source from the content-addressed store, hash-verified

205 }
206
207 pub fn color(&self) -> Option<Color> {
208 unsafe { self.node.map(|node| node.as_ref().color) }
209 }
210
211 pub fn is_red(&self) -> bool {
212 self.color() == Some(Color::Red)

Callers 4

rotate_leftFunction · 0.45
rotate_rightFunction · 0.45
insert_fixFunction · 0.45
is_redMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected