AVLNode represents a single node in the AVL.
| 16 | |
| 17 | // AVLNode represents a single node in the AVL. |
| 18 | type AVLNode[T constraints.Ordered] struct { |
| 19 | key T |
| 20 | parent *AVLNode[T] |
| 21 | left *AVLNode[T] |
| 22 | right *AVLNode[T] |
| 23 | height int |
| 24 | } |
| 25 | |
| 26 | func (n *AVLNode[T]) Key() T { |
| 27 | return n.key |
nothing calls this directly
no outgoing calls
no test coverage detected