pub struct GraphNodeBlocks<'a> { /* private fields */ }Expand description
Validated borrowed view over one complete mmap-backed graph region.
Implementations§
Source§impl GraphNodeBlocks<'_>
impl GraphNodeBlocks<'_>
Sourcepub const fn layout(&self) -> GraphNodeLayout
pub const fn layout(&self) -> GraphNodeLayout
Returns the geometry validated from the fixed metadata trailer.
Sourcepub const fn node_count(&self) -> u32
pub const fn node_count(&self) -> u32
Returns the dense segment-local graph node / row count.
Sourcepub const fn refinement_passes(&self) -> RefinementPasses
pub const fn refinement_passes(&self) -> RefinementPasses
Returns the authenticated record of post-consolidation passes applied.
Sourcepub fn block(&self, node_id: u32) -> Result<GraphNodeBlock<'_>, GraphNodeError>
pub fn block(&self, node_id: u32) -> Result<GraphNodeBlock<'_>, GraphNodeError>
Returns one validated node block by its identical segment row id.
Trait Implementations§
Source§impl<'a> Clone for GraphNodeBlocks<'a>
impl<'a> Clone for GraphNodeBlocks<'a>
Source§fn clone(&self) -> GraphNodeBlocks<'a>
fn clone(&self) -> GraphNodeBlocks<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for GraphNodeBlocks<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphNodeBlocks<'a>
impl<'a> RefUnwindSafe for GraphNodeBlocks<'a>
impl<'a> Send for GraphNodeBlocks<'a>
impl<'a> Sync for GraphNodeBlocks<'a>
impl<'a> Unpin for GraphNodeBlocks<'a>
impl<'a> UnsafeUnpin for GraphNodeBlocks<'a>
impl<'a> UnwindSafe for GraphNodeBlocks<'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