MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / string_field

Function string_field

packages/server/src/main/tap_target.rs:144–146  ·  view source on GitHub ↗
(node: &Value, key: &str)

Source from the content-addressed store, hash-verified

142}
143
144fn string_field(node: &Value, key: &str) -> Option<String> {
145 node.get(key)?.as_str().map(str::to_owned)
146}
147
148fn element_center(node: &Value) -> Option<(f64, f64)> {
149 let frame = node.get("frame")?;

Callers 1

element_matchesFunction · 0.70

Calls 2

getMethod · 0.65
as_strMethod · 0.45

Tested by

no test coverage detected