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

Method add_dependency

atomic-core/src/record/workflow/assembly/mod.rs:195–199  ·  view source on GitHub ↗

Add a dependency. # Arguments `hash` - The dependency hash

(&mut self, hash: Hash)

Source from the content-addressed store, hash-verified

193 ///
194 /// * `hash` - The dependency hash
195 pub fn add_dependency(&mut self, hash: Hash) {
196 if self.dependencies.insert(hash) {
197 self.stats.dependencies_added += 1;
198 }
199 }
200
201 /// Add multiple dependencies.
202 ///

Callers 3

add_dependenciesMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by 2