pub struct RowView<'a> { /* private fields */ }Expand description
A view into a single logical row of a factorized chunk.
Provides zero-copy access to values at each level without materializing the entire row.
Implementations§
Source§impl<'a> RowView<'a>
impl<'a> RowView<'a>
Sourcepub fn new(chunk: &'a FactorizedChunk, indices: RowIndices) -> Self
pub fn new(chunk: &'a FactorizedChunk, indices: RowIndices) -> Self
Creates a new row view.
Sourcepub fn from_ref(chunk: &'a FactorizedChunk, indices: &RowIndices) -> Self
pub fn from_ref(chunk: &'a FactorizedChunk, indices: &RowIndices) -> Self
Creates a new row view from a reference to indices (clones the indices).
Sourcepub fn get(&self, level: usize, column: usize) -> Option<Value>
pub fn get(&self, level: usize, column: usize) -> Option<Value>
Gets a value at a specific level and column.
Sourcepub fn get_node_id(&self, level: usize, column: usize) -> Option<NodeId>
pub fn get_node_id(&self, level: usize, column: usize) -> Option<NodeId>
Gets a NodeId at a specific level and column.
Sourcepub fn get_edge_id(&self, level: usize, column: usize) -> Option<EdgeId>
pub fn get_edge_id(&self, level: usize, column: usize) -> Option<EdgeId>
Gets an EdgeId at a specific level and column.
Sourcepub fn level_count(&self) -> usize
pub fn level_count(&self) -> usize
Returns the number of levels in this row.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RowView<'a>
impl<'a> RefUnwindSafe for RowView<'a>
impl<'a> Send for RowView<'a>
impl<'a> Sync for RowView<'a>
impl<'a> Unpin for RowView<'a>
impl<'a> UnwindSafe for RowView<'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