Skip to main content

Module arc

Module arc 

Source
Expand description

Arc-pointer graph reification, parallel to the Rc<RefCell<T>> API.

Identical semantics to the top-level crate::reify_graph / crate::reflect_graph pair, but for Arc<Mutex<T>> graphs. NodeId is shared between the two APIs.

Functionsยง

collect_nodes_arc
Collect all reachable nodes from root, detecting shared pointers.
node_id_of_arc
Extract a NodeId from an Arc<Mutex<T>> using pointer identity.
reflect_graph_arc
Reconstruct an Arc<Mutex<T>> graph from a crate::ReifiedGraph.
reify_graph_arc
Reify an Arc<Mutex<T>> graph into a crate::ReifiedGraph.