Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/douchuan/algorithm
/ is_red
Method
is_red
src/tree/binary/node.rs:211–213 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
209
}
210
211
pub fn is_red(&self) -> bool {
212
self.color() == Some(Color::Red)
213
}
214
215
pub fn is_black(&self) -> bool {
216
!self.is_red()
Callers
13
delete_min
Method · 0.80
delete_max
Method · 0.80
delete
Method · 0.80
del_min
Function · 0.80
del_max
Function · 0.80
delete
Function · 0.80
balance
Function · 0.80
counter
Function · 0.80
move_red_left
Function · 0.80
move_red_right
Function · 0.80
is23
Function · 0.80
calc_blacks
Function · 0.80
Calls
1
color
Method · 0.45
Tested by
no test coverage detected