BSNode represents a single node in the BinarySearch.
| 13 | |
| 14 | // BSNode represents a single node in the BinarySearch. |
| 15 | type BSNode[T constraints.Ordered] struct { |
| 16 | key T |
| 17 | parent *BSNode[T] |
| 18 | left *BSNode[T] |
| 19 | right *BSNode[T] |
| 20 | } |
| 21 | |
| 22 | func (n *BSNode[T]) Key() T { |
| 23 | return n.key |
nothing calls this directly
no outgoing calls
no test coverage detected