pub struct ToposortCsrStaticInputKey {
pub node_count: u32,
pub node_words: usize,
pub offset_words: usize,
pub target_words: usize,
pub offsets_hash: u64,
pub targets_hash: u64,
}Expand description
Primitive-owned identity for reusable topological-sort static inputs.
Dispatch wrappers use this key to decide whether the CSR graph inputs can remain resident across calls. Keeping it in the primitive prevents each wrapper from inventing a private fingerprint contract for the same graph representation.
Fields§
§node_count: u32Number of nodes in the CSR graph.
node_words: usizeWords in node-indexed scratch/output buffers.
offset_words: usizeWords in the CSR offsets buffer.
target_words: usizeWords in the CSR targets buffer.
offsets_hash: u64Stable content fingerprint for CSR offsets.
targets_hash: u64Stable content fingerprint for CSR targets.
Trait Implementations§
Source§impl Clone for ToposortCsrStaticInputKey
impl Clone for ToposortCsrStaticInputKey
Source§fn clone(&self) -> ToposortCsrStaticInputKey
fn clone(&self) -> ToposortCsrStaticInputKey
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 Copy for ToposortCsrStaticInputKey
Source§impl Debug for ToposortCsrStaticInputKey
impl Debug for ToposortCsrStaticInputKey
impl Eq for ToposortCsrStaticInputKey
impl StructuralPartialEq for ToposortCsrStaticInputKey
Auto Trait Implementations§
impl Freeze for ToposortCsrStaticInputKey
impl RefUnwindSafe for ToposortCsrStaticInputKey
impl Send for ToposortCsrStaticInputKey
impl Sync for ToposortCsrStaticInputKey
impl Unpin for ToposortCsrStaticInputKey
impl UnsafeUnpin for ToposortCsrStaticInputKey
impl UnwindSafe for ToposortCsrStaticInputKey
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.