MCPcopy Index your code
hub / github.com/endbasic/endbasic / exec

Method exec

core/tests/testutils/callables/get_data_cmd.rs:55–67  ·  view source on GitHub ↗
(&self, scope: Scope<'_>)

Source from the content-addressed store, hash-verified

53 }
54
55 fn exec(&self, scope: Scope<'_>) -> CallResult<()> {
56 let text = scope
57 .data()
58 .iter()
59 .enumerate()
60 .map(|(i, datum)| format!("{i}={}", format_datum(datum)))
61 .collect::<Vec<String>>()
62 .join(" ");
63 let mut output = self.output.borrow_mut();
64 output.push_str(&text);
65 output.push('\n');
66 Ok(())
67 }
68}

Callers

nothing calls this directly

Calls 5

iterMethod · 0.80
dataMethod · 0.80
push_strMethod · 0.80
pushMethod · 0.80
enumerateMethod · 0.45

Tested by

no test coverage detected