pub struct TableReader<'a, E, MA>where
E: Encode,
MA: MemoryAccess,{ /* private fields */ }Expand description
A reader for the table registry that allows reading records from memory.
The table reader provides methods to read records from the table registry one by one,
using the underlying PageLedger to locate the records in memory.
Implementations§
Source§impl<'a, E, MA> TableReader<'a, E, MA>where
E: Encode,
MA: MemoryAccess,
impl<'a, E, MA> TableReader<'a, E, MA>where
E: Encode,
MA: MemoryAccess,
Sourcepub fn new(page_ledger: &'a PageLedger, mm: &'a mut MA) -> Self
pub fn new(page_ledger: &'a PageLedger, mm: &'a mut MA) -> Self
Creates a new table reader starting from the beginning of the table registry.
Sourcepub fn try_next(&mut self) -> MemoryResult<Option<NextRecord<E>>>
pub fn try_next(&mut self) -> MemoryResult<Option<NextRecord<E>>>
Reads the next record from the table registry.
Auto Trait Implementations§
impl<'a, E, MA> !UnwindSafe for TableReader<'a, E, MA>
impl<'a, E, MA> Freeze for TableReader<'a, E, MA>
impl<'a, E, MA> RefUnwindSafe for TableReader<'a, E, MA>
impl<'a, E, MA> Send for TableReader<'a, E, MA>
impl<'a, E, MA> Sync for TableReader<'a, E, MA>
impl<'a, E, MA> Unpin for TableReader<'a, E, MA>
impl<'a, E, MA> UnsafeUnpin for TableReader<'a, E, MA>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more