pub struct TableStorage<'a> {
pub rows: &'a [Word],
pub owners: &'a [NodeId],
pub row_count: usize,
pub row_index_dir: &'a [u32],
pub row_index_pages: &'a [u32],
}Expand description
One table’s storage exactly as published in NvTableView.
Fields§
§rows: &'a [Word]row_count * words row words (dense: indexed by node index).
owners: &'a [NodeId]Sparse: raw owner NodeId per row. Dense: empty (row = node index, at most capacity()).
row_count: usize§row_index_dir: &'a [u32]Sparse: page per NV_ROW_INDEX_PAGE_LEN node indices (NV_ROW_INDEX_NO_PAGE = none).
row_index_pages: &'a [u32]Sparse: flattened pages of row + 1 per node index (0 = no row).
Trait Implementations§
Source§impl<'a> Clone for TableStorage<'a>
impl<'a> Clone for TableStorage<'a>
impl<'a> Copy for TableStorage<'a>
Auto Trait Implementations§
impl<'a> Forget for TableStorage<'a>
impl<'a> Freeze for TableStorage<'a>
impl<'a> Move for TableStorage<'a>
impl<'a> RefUnwindSafe for TableStorage<'a>
impl<'a> Send for TableStorage<'a>
impl<'a> Sync for TableStorage<'a>
impl<'a> Unpin for TableStorage<'a>
impl<'a> UnsafeUnpin for TableStorage<'a>
impl<'a> UnwindSafe for TableStorage<'a>
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