| 51 | // key 保存数据、left 和 right 保存左右子节点 |
| 52 | #[derive(Debug, Clone, PartialEq)] |
| 53 | struct BinaryTree<T> { |
| 54 | key: T, |
| 55 | left: Link<T>, |
| 56 | right: Link<T>, |
| 57 | } |
| 58 | |
| 59 | impl<T: Clone + Ord + ToString + Debug> BinaryTree<T> { |
| 60 | // 构建新树 |
nothing calls this directly
no outgoing calls
no test coverage detected