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

Method new

flow-rs/src/resource/collection.rs:21–30  ·  view source on GitHub ↗
(
        local_key: u64,
        id: u64,
        cfg: &HashMap<String, Entity>,
    )

Source from the content-addressed store, hash-verified

19
20impl UniqueResourceCollection {
21 pub(crate) fn new(
22 local_key: u64,
23 id: u64,
24 cfg: &HashMap<String, Entity>,
25 ) -> UniqueResourceCollection {
26 UniqueResourceCollection {
27 resources: cfg.keys().cloned().map(|x| (x, id)).collect(),
28 storage: storage(local_key, id, cfg),
29 }
30 }
31
32 pub(crate) fn take_into_arc(self) -> ResourceCollection {
33 ResourceCollection {

Callers

nothing calls this directly

Calls 2

storageFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected