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

Function cell_str

src/mcp/tools/render.rs:503–514  ·  view source on GitHub ↗
(key: &str, v: &Value)

Source from the content-addressed store, hash-verified

501}
502
503fn cell_str(key: &str, v: &Value) -> String {
504 let s = if is_scalar(v) {
505 scalar_str_keyed(key, v)
506 } else {
507 nested_cell_str(v)
508 };
509 if is_id_key(key) && !s.is_empty() {
510 format!("`{s}`")
511 } else {
512 s
513 }
514}
515
516fn render_value(md: &mut Md, value: &Value, depth: u8) {
517 match value {

Callers 2

render_objectFunction · 0.85

Calls 5

is_scalarFunction · 0.85
scalar_str_keyedFunction · 0.85
nested_cell_strFunction · 0.85
is_id_keyFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected