Start on implementing filtering support for Cursor::prev
This commit is contained in:
parent
7c6fe56347
commit
45ce503afd
5 changed files with 65 additions and 91 deletions
|
@ -242,10 +242,10 @@ impl<T: Item> SumTree<T> {
|
|||
extent
|
||||
}
|
||||
|
||||
pub fn summary(&self) -> T::Summary {
|
||||
pub fn summary(&self) -> &T::Summary {
|
||||
match self.0.as_ref() {
|
||||
Node::Internal { summary, .. } => summary.clone(),
|
||||
Node::Leaf { summary, .. } => summary.clone(),
|
||||
Node::Internal { summary, .. } => summary,
|
||||
Node::Leaf { summary, .. } => summary,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue