MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / insert

Method insert

flow-rs/src/registry.rs:58–64  ·  view source on GitHub ↗
(&self, id: Q, elem: T)

Source from the content-addressed store, hash-verified

56 }
57
58 pub(crate) fn insert<Q>(&self, id: Q, elem: T)
59 where
60 Q: Into<ID>,
61 {
62 let mut registry = self.inner.write().unwrap();
63 registry.elems.insert(id.into(), Arc::new(elem));
64 }
65
66 pub(crate) fn for_each<F>(&self, f: F)
67 where

Callers 15

analyzeFunction · 0.80
analyzeFunction · 0.80
describe_responsesMethod · 0.80
describe_responsesMethod · 0.80
describe_responsesMethod · 0.80
describe_responsesMethod · 0.80
newMethod · 0.80
scan_all_placeholderFunction · 0.80
setMethod · 0.80
setMethod · 0.80
__setitem__Method · 0.80
__setitem__Method · 0.80

Calls

no outgoing calls

Tested by 1

test_basisFunction · 0.64