inline database stream interface functions lt 64B

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-30 05:08:04 +00:00
parent a7cb1c5951
commit 9775694423
5 changed files with 13 additions and 0 deletions

View file

@ -28,6 +28,7 @@ impl<'a> Cursor<'a, KeyVal<'a>> for Items<'a> {
fn fetch(&self) -> Option<KeyVal<'a>> { self.state.fetch().map(keyval_longevity) }
#[inline]
fn seek(&mut self) { self.state.seek_fwd(); }
}
@ -40,5 +41,6 @@ impl<'a> Stream for Items<'a> {
}
impl FusedStream for Items<'_> {
#[inline]
fn is_terminated(&self) -> bool { !self.state.init && !self.state.valid() }
}