pub struct NormalizedCsrGraph { /* private fields */ }Expand description
Owned canonical CSR layout for cache keys, packed graph state, and reuse.
Implementations§
Source§impl NormalizedCsrGraph
impl NormalizedCsrGraph
Sourcepub fn node_count(&self) -> u32
pub fn node_count(&self) -> u32
Number of nodes in the normalized graph domain.
Sourcepub fn edge_count(&self) -> u32
pub fn edge_count(&self) -> u32
Number of canonical edges after duplicate row entries are removed.
Sourcepub fn edge_offsets(&self) -> &[u32]
pub fn edge_offsets(&self) -> &[u32]
Canonical CSR row offsets.
Sourcepub fn edge_targets(&self) -> &[u32]
pub fn edge_targets(&self) -> &[u32]
Canonical CSR edge targets.
Sourcepub fn edge_kind_mask(&self) -> &[u32]
pub fn edge_kind_mask(&self) -> &[u32]
Canonical CSR edge-kind masks.
Sourcepub fn edge_offsets_capacity(&self) -> usize
pub fn edge_offsets_capacity(&self) -> usize
Retained canonical offset capacity.
Sourcepub fn edge_targets_capacity(&self) -> usize
pub fn edge_targets_capacity(&self) -> usize
Retained canonical target capacity.
Sourcepub fn edge_kind_mask_capacity(&self) -> usize
pub fn edge_kind_mask_capacity(&self) -> usize
Retained canonical edge-kind capacity.
Sourcepub fn stable_layout_hash(&self) -> u64
pub fn stable_layout_hash(&self) -> u64
Stable hash of the canonical CSR graph layout.
Cache identity belongs to the shared graph contract: domain size, canonical row offsets, targets, and edge-kind masks. It intentionally excludes transient dispatch buffers such as zeroed ProgramGraph node arrays.
Trait Implementations§
Source§impl Clone for NormalizedCsrGraph
impl Clone for NormalizedCsrGraph
Source§fn clone(&self) -> NormalizedCsrGraph
fn clone(&self) -> NormalizedCsrGraph
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 moreSource§impl Debug for NormalizedCsrGraph
impl Debug for NormalizedCsrGraph
impl Eq for NormalizedCsrGraph
Source§impl PartialEq for NormalizedCsrGraph
impl PartialEq for NormalizedCsrGraph
impl StructuralPartialEq for NormalizedCsrGraph
Auto Trait Implementations§
impl Freeze for NormalizedCsrGraph
impl RefUnwindSafe for NormalizedCsrGraph
impl Send for NormalizedCsrGraph
impl Sync for NormalizedCsrGraph
impl Unpin for NormalizedCsrGraph
impl UnsafeUnpin for NormalizedCsrGraph
impl UnwindSafe for NormalizedCsrGraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.