MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / recurse

Function recurse

crates/spirv-builder/src/lib.rs:802–815  ·  view source on GitHub ↗
(
        map: &HashMap<RawString, Vec<RawString>>,
        artifact: &RawStr,
        handle: &mut impl FnMut(&RawStr),
    )

Source from the content-addressed store, hash-verified

800 Ok(())
801 })?;
802 fn recurse(
803 map: &HashMap<RawString, Vec<RawString>>,
804 artifact: &RawStr,
805 handle: &mut impl FnMut(&RawStr),
806 ) {
807 match map.get(artifact) {
808 Some(entries) => {
809 for entry in entries {
810 recurse(map, entry, handle);
811 }
812 }
813 None => handle(artifact),
814 }
815 }
816 recurse(&deps_map, artifact.to_str().unwrap().into(), &mut handle);
817 Ok(())
818}

Callers 1

leaf_depsFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected