RBNode represents a single node in the RB.
| 23 | |
| 24 | // RBNode represents a single node in the RB. |
| 25 | type RBNode[T constraints.Ordered] struct { |
| 26 | key T |
| 27 | parent *RBNode[T] |
| 28 | left *RBNode[T] |
| 29 | right *RBNode[T] |
| 30 | color Color |
| 31 | } |
| 32 | |
| 33 | func (n *RBNode[T]) Key() T { |
| 34 | return n.key |
nothing calls this directly
no outgoing calls
no test coverage detected