inline database stream interface functions lt 64B

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-11-03 07:32:09 +00:00
1 parent a7cb1c5951
commit 9775694423
5 files changed
+13

No files matched your search

+2
View File
@@ -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() }
}