pub struct GraphTopology<'view> {
pub forward: ForwardCsr<'view>,
pub inbound: InboundCsc<'view>,
}Expand description
Both topology views borrowing the same snapshot backing.
Fields§
§forward: ForwardCsr<'view>Forward CSR over outgoing edges.
inbound: InboundCsc<'view>Inbound CSC over predecessor lists.
Implementations§
Source§impl<'view> GraphTopology<'view>
impl<'view> GraphTopology<'view>
Sourcepub fn open(snapshot: &Snapshot<'view>) -> Result<Self, PostgresGraphError>
pub fn open(snapshot: &Snapshot<'view>) -> Result<Self, PostgresGraphError>
Opens both layouts from validated snapshot bytes.
§Errors
Returns PostgresGraphError when metadata, sections, or cross-layout counts disagree.
§Performance
This function is O(s + n + m).
Trait Implementations§
Source§impl<'view> Clone for GraphTopology<'view>
impl<'view> Clone for GraphTopology<'view>
Source§fn clone(&self) -> GraphTopology<'view>
fn clone(&self) -> GraphTopology<'view>
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<'view> Copy for GraphTopology<'view>
Source§impl<'view> Debug for GraphTopology<'view>
impl<'view> Debug for GraphTopology<'view>
Source§impl<'yoke> Yokeable<'yoke> for GraphTopology<'static>
impl<'yoke> Yokeable<'yoke> for GraphTopology<'static>
Source§type Output = GraphTopology<'yoke>
type Output = GraphTopology<'yoke>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'view> Freeze for GraphTopology<'view>
impl<'view> RefUnwindSafe for GraphTopology<'view>
impl<'view> Send for GraphTopology<'view>
impl<'view> Sync for GraphTopology<'view>
impl<'view> Unpin for GraphTopology<'view>
impl<'view> UnsafeUnpin for GraphTopology<'view>
impl<'view> UnwindSafe for GraphTopology<'view>
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