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

Function is_empty_collection

src/mcp/tools/render.rs:653–655  ·  view source on GitHub ↗
(v: &Value)

Source from the content-addressed store, hash-verified

651}
652
653fn is_empty_collection(v: &Value) -> bool {
654 matches!(v, Value::Array(a) if a.is_empty()) || matches!(v, Value::Object(o) if o.is_empty())
655}
656
657fn render_object(md: &mut Md, map: &serde_json::Map<String, Value>, depth: u8) {
658 for (k, v) in map {

Callers 1

render_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected