pub struct MergedGraphView<'a, const CAP: usize = 256> { /* private fields */ }Expand description
Zero-heap merged view combining an immutable HarbouredCsrView with live TopologicalDeltaRing edits.
Implementations§
Source§impl<'a, const CAP: usize> MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> MergedGraphView<'a, CAP>
pub const fn new( base: HarbouredCsrView<'a>, ring: &'a TopologicalDeltaRing<CAP>, graph_slot: u16, ) -> Self
pub const fn base(&self) -> &HarbouredCsrView<'a>
pub const fn ring(&self) -> &'a TopologicalDeltaRing<CAP>
pub const fn graph_slot(&self) -> u16
pub const fn vertex_count(&self) -> u32
Sourcepub fn effective_out_neighbors(
&self,
u: u32,
out_targets: &mut [u32],
out_edge_anchors: &mut [u32],
) -> Result<usize, TopologyError>
pub fn effective_out_neighbors( &self, u: u32, out_targets: &mut [u32], out_edge_anchors: &mut [u32], ) -> Result<usize, TopologyError>
Materialize the effective outgoing neighbours and edge anchors of vertex u
after applying all TopologicalDeltaRing mutations for self.graph_slot in seq_no order.
Sourcepub fn effective_cell_anchor(&self, v: u32) -> Result<CellAnchor, TopologyError>
pub fn effective_cell_anchor(&self, v: u32) -> Result<CellAnchor, TopologyError>
Resolve the effective CellAnchor of vertex v after applying AnchorBind delta entries.
Trait Implementations§
Source§impl<'a, const CAP: usize> Clone for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> Clone for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> Copy for MergedGraphView<'a, CAP>
Auto Trait Implementations§
impl<'a, const CAP: usize> Freeze for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> RefUnwindSafe for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> Send for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> Sync for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> Unpin for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> UnsafeUnpin for MergedGraphView<'a, CAP>
impl<'a, const CAP: usize> UnwindSafe for MergedGraphView<'a, CAP>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more