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

Method flip

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

Source from the content-addressed store, hash-verified

296
297impl Color {
298 pub fn flip(&self) -> Self {
299 match self {
300 Color::Red => Color::Black,
301 Color::Black => Color::Red,
302 }
303 }
304}

Callers 1

flip_colorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected