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

Method get

flow-rs/src/registry.rs:49–56  ·  view source on GitHub ↗
(&self, id: &Q)

Source from the content-addressed store, hash-verified

47
48impl<ID: Eq + Hash, T> Registry<ID, T> {
49 pub(crate) fn get<Q: ?Sized>(&self, id: &Q) -> Option<Arc<T>>
50 where
51 ID: Borrow<Q>,
52 Q: Hash + Eq,
53 {
54 let registry = self.inner.read().unwrap();
55 registry.elems.get(id).cloned()
56 }
57
58 pub(crate) fn insert<Q>(&self, id: Q, elem: T)
59 where

Callers 13

accessibleFunction · 0.45
checkValidServiceWorkerFunction · 0.45
get_refMethod · 0.45
get_refMethod · 0.45
xgetMethod · 0.45
xget_refMethod · 0.45
__getitem__Method · 0.45
__getitem__Method · 0.45
__getitem__Method · 0.45
inputMethod · 0.45
outputMethod · 0.45
graph_registerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected