MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / load_frame

Method load_frame

atomic-core/src/pristine/traits/view.rs:131–145  ·  view source on GitHub ↗
(
            txn: &T,
            change_id: NodeId,
        )

Source from the content-addressed store, hash-verified

129 }
130
131 fn load_frame<T: GraphTxnT>(
132 txn: &T,
133 change_id: NodeId,
134 ) -> Result<VisitFrame, PristineError> {
135 if txn.get_external(change_id)?.is_none() {
136 return Err(PristineError::ChangeNotFound {
137 id: change_id.get(),
138 });
139 }
140 Ok(VisitFrame {
141 change_id,
142 dependencies: txn.get_indexed_change_deps(change_id)?,
143 next_dependency: 0,
144 })
145 }
146
147 let mut colors = HashMap::new();
148 let mut dependency_first = Vec::new();

Callers

nothing calls this directly

Calls 8

is_noneMethod · 0.80
getMethod · 0.65
get_externalMethod · 0.45
get_change_depsMethod · 0.45
lenMethod · 0.45
pushMethod · 0.45
get_internalMethod · 0.45

Tested by

no test coverage detected