MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / string_value

Function string_value

packages/server/src/webkit.rs:1220–1225  ·  view source on GitHub ↗
(args: &Dictionary, key: &str)

Source from the content-addressed store, hash-verified

1218}
1219
1220fn string_value(args: &Dictionary, key: &str) -> Option<String> {
1221 args.get(key)
1222 .and_then(Value::as_string)
1223 .map(str::to_owned)
1224 .filter(|value| !value.is_empty())
1225}
1226
1227fn bool_value(args: &Dictionary, key: &str) -> Option<bool> {
1228 args.get(key).and_then(Value::as_boolean)

Callers 7

run_connectionMethod · 0.70
parse_application_listFunction · 0.70
parse_applicationFunction · 0.70
parse_page_listingFunction · 0.70
apply_page_listingFunction · 0.70

Calls 2

is_emptyMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected