(x: Option<NonNull<Node<K, V>>>)
| 414 | } |
| 415 | |
| 416 | fn calc_blacks<K, V>(x: Option<NonNull<Node<K, V>>>) -> usize { |
| 417 | let mut x = NodeQuery::new(x); |
| 418 | let mut black = 0; |
| 419 | while x.is_some() { |
| 420 | if !x.is_red() { |
| 421 | black += 1; |
| 422 | } |
| 423 | x = x.left(); |
| 424 | } |
| 425 | black |
| 426 | } |
| 427 | |
| 428 | #[test] |
| 429 | fn t_verify() { |
no test coverage detected