BinaryTreesEmpty
for BalancedTrees
This commit is contained in:
parent
93c591d576
commit
00e906691c
@ -110,3 +110,19 @@ impl<'a, BT: BinaryTreesUnbalanced<'a>> BinaryTreesTreeOf<'a> for BalancedTrees<
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, BT: BinaryTreesUnbalanced<'a> + BinaryTreesEmpty<'a>> BinaryTreesEmpty<'a>
|
||||
for BalancedTrees<BT>
|
||||
{
|
||||
fn empty(&self) -> Self::Tree {
|
||||
self.0.empty()
|
||||
}
|
||||
|
||||
fn split_key_empty(
|
||||
&self,
|
||||
tree: Self::Tree,
|
||||
key: Self::Key,
|
||||
) -> BTWrap<'a, Self, KeySplit<'a, Self>> {
|
||||
self.0.split_key_empty(tree, key)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user