pub struct PreparedIfdsCsr { /* private fields */ }Expand description
Reusable IFDS exploded-supergraph CSR prepared once for many seed queries.
The packed ProgramGraph buffers are retained in the shape consumed by
ifds_gpu_step, so callers that solve many source/fact queries over one
graph avoid rebuilding and repacking the invariant CSR every time.
Implementations§
Source§impl PreparedIfdsCsr
impl PreparedIfdsCsr
Sourcepub fn node_count(&self) -> u32
pub fn node_count(&self) -> u32
Exploded-supergraph node count.
Sourcepub fn frontier_words(&self) -> usize
pub fn frontier_words(&self) -> usize
Number of u32 words in one frontier bitset.
Sourcepub fn retained_graph_bytes(&self) -> usize
pub fn retained_graph_bytes(&self) -> usize
Total resident bytes required by invariant packed graph buffers.
Sourcepub fn stable_layout_hash(&self) -> u64
pub fn stable_layout_hash(&self) -> u64
Deterministic hash of the prepared IFDS CSR layout and packed bytes.
Trait Implementations§
Source§impl Clone for PreparedIfdsCsr
impl Clone for PreparedIfdsCsr
Source§fn clone(&self) -> PreparedIfdsCsr
fn clone(&self) -> PreparedIfdsCsr
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 PreparedIfdsCsr
impl Debug for PreparedIfdsCsr
Source§impl PartialEq for PreparedIfdsCsr
impl PartialEq for PreparedIfdsCsr
impl StructuralPartialEq for PreparedIfdsCsr
Auto Trait Implementations§
impl Freeze for PreparedIfdsCsr
impl RefUnwindSafe for PreparedIfdsCsr
impl Send for PreparedIfdsCsr
impl Sync for PreparedIfdsCsr
impl Unpin for PreparedIfdsCsr
impl UnsafeUnpin for PreparedIfdsCsr
impl UnwindSafe for PreparedIfdsCsr
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