MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / num_arg

Function num_arg

nodedb-query/src/geo_functions.rs:361–363  ·  view source on GitHub ↗
(args: &[Value], idx: usize)

Source from the content-addressed store, hash-verified

359}
360
361fn num_arg(args: &[Value], idx: usize) -> Option<f64> {
362 args.get(idx).and_then(|v| value_to_f64(v, true))
363}
364
365/// Extract a geometry argument. Supports `Value::Geometry` directly,
366/// or falls back to JSON deserialization for `Value::Object` (GeoJSON).

Callers 1

eval_geo_functionFunction · 0.70

Calls 2

value_to_f64Function · 0.85
getMethod · 0.45

Tested by

no test coverage detected