inline database stream interface functions lt 64B
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
a7cb1c5951
commit
9775694423
5 changed files with 13 additions and 0 deletions
|
@ -28,6 +28,7 @@ impl<'a> Cursor<'a, KeyVal<'a>> for ItemsRev<'a> {
|
|||
|
||||
fn fetch(&self) -> Option<KeyVal<'a>> { self.state.fetch().map(keyval_longevity) }
|
||||
|
||||
#[inline]
|
||||
fn seek(&mut self) { self.state.seek_rev(); }
|
||||
}
|
||||
|
||||
|
@ -40,5 +41,6 @@ impl<'a> Stream for ItemsRev<'a> {
|
|||
}
|
||||
|
||||
impl FusedStream for ItemsRev<'_> {
|
||||
#[inline]
|
||||
fn is_terminated(&self) -> bool { !self.state.init && !self.state.valid() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue