pub struct RawTableReader<'a, MA>where
MA: MemoryAccess,{ /* private fields */ }Expand description
Iterator over a table’s records as raw bytes. Mirrors the scan logic of
TableReader but parameterised over runtime
alignment (the migration codec slices records by snapshot, not by T).
Implementations§
Source§impl<'a, MA> RawTableReader<'a, MA>where
MA: MemoryAccess,
impl<'a, MA> RawTableReader<'a, MA>where
MA: MemoryAccess,
Sourcepub fn new(
page_ledger: &'a PageLedger,
alignment: PageOffset,
mm: &'a mut MA,
) -> Self
pub fn new( page_ledger: &'a PageLedger, alignment: PageOffset, mm: &'a mut MA, ) -> Self
Build a reader. alignment must be the table’s record alignment as
stored in the snapshot (matches the on-disk layout written by
TableRegistry::insert).
Sourcepub fn try_next(&mut self) -> MemoryResult<Option<RawRecordBytes>>
pub fn try_next(&mut self) -> MemoryResult<Option<RawRecordBytes>>
Pop the next live record’s bytes, or Ok(None) at end of table.
Auto Trait Implementations§
impl<'a, MA> Freeze for RawTableReader<'a, MA>
impl<'a, MA> RefUnwindSafe for RawTableReader<'a, MA>where
MA: RefUnwindSafe,
impl<'a, MA> Send for RawTableReader<'a, MA>where
MA: Send,
impl<'a, MA> Sync for RawTableReader<'a, MA>where
MA: Sync,
impl<'a, MA> Unpin for RawTableReader<'a, MA>
impl<'a, MA> UnsafeUnpin for RawTableReader<'a, MA>
impl<'a, MA> !UnwindSafe for RawTableReader<'a, 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