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

Function integer_value

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

Source from the content-addressed store, hash-verified

1229}
1230
1231fn integer_value(args: &Dictionary, key: &str) -> Option<u64> {
1232 let value = args.get(key)?;
1233 value.as_unsigned_integer().or_else(|| {
1234 value
1235 .as_signed_integer()
1236 .and_then(|value| value.try_into().ok())
1237 })
1238}
1239
1240fn data_value(args: &Dictionary, key: &str) -> Option<Vec<u8>> {
1241 args.get(key)

Callers 4

run_connectionMethod · 0.85
parse_application_listFunction · 0.85
parse_applicationFunction · 0.85
parse_page_listingFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected