pub struct GraphSnapshot {
pub node_hashes: HashMap<NodeId, u64>,
pub edge_hashes: HashMap<NodeId, u64>,
}Expand description
A lightweight snapshot of graph state for diff computation.
Stores per-node and per-edge hashes so that changes can be detected by comparing hashes rather than storing full copies of the graph.
Fields§
§node_hashes: HashMap<NodeId, u64>Hash of each node’s emitted text, keyed by NodeId.
edge_hashes: HashMap<NodeId, u64>Hash of each edge’s emitted text, keyed by edge id.
Trait Implementations§
Source§impl Clone for GraphSnapshot
impl Clone for GraphSnapshot
Source§fn clone(&self) -> GraphSnapshot
fn clone(&self) -> GraphSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 GraphSnapshot
impl Debug for GraphSnapshot
Source§impl Default for GraphSnapshot
impl Default for GraphSnapshot
Source§fn default() -> GraphSnapshot
fn default() -> GraphSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphSnapshot
impl RefUnwindSafe for GraphSnapshot
impl Send for GraphSnapshot
impl Sync for GraphSnapshot
impl Unpin for GraphSnapshot
impl UnsafeUnpin for GraphSnapshot
impl UnwindSafe for GraphSnapshot
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