Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_left
Function · 0.45
rotate_right
Function · 0.45
insert_fix
Function · 0.45
is_red
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected