MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / bool_field

Function bool_field

src/hooks/codex.rs:378–381  ·  view source on GitHub ↗
(value: &Value, keys: &[&str])

Source from the content-addressed store, hash-verified

376}
377
378fn bool_field(value: &Value, keys: &[&str]) -> Option<bool> {
379 keys.iter()
380 .find_map(|key| value.get(*key).and_then(Value::as_bool))
381}
382
383fn empty_array_field(value: &Value, keys: &[&str]) -> bool {
384 keys.iter().any(|key| {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected