Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
297
impl 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_color
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected