MCPcopy Create free account
hub / github.com/circify/circ / extract

Function extract

src/front/zsharp/interp.rs:14–49  ·  view source on GitHub ↗

Given a variable name, a variable type, and a map from delimited names (e.g., "x", "x.0", "x.field_name") to values computes a [T] (of the given type) that contains only constants. These constants are extracted from the map

(
    name: &str,
    ty: &Ty,
    scalar_input_values: &mut HashMap<String, Value>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

const_entry_fnMethod · 0.70

Calls 4

const_Function · 0.85
mapMethod · 0.80
fieldsMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected