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

Function add_all

std/src/data.rs:224–229  ·  view source on GitHub ↗

Instantiates all symbols in this module and adds them to the `machine`.

(machine: &mut MachineBuilder)

Source from the content-addressed store, hash-verified

222
223/// Instantiates all symbols in this module and adds them to the `machine`.
224pub fn add_all(machine: &mut MachineBuilder) {
225 let index = Rc::from(RefCell::from(0));
226 machine.add_clearable(Box::from(ClearableIndex(index.clone())));
227 machine.add_callable(ReadCommand::new(index.clone()));
228 machine.add_callable(RestoreCommand::new(index));
229}
230
231#[cfg(test)]
232mod tests {

Callers

nothing calls this directly

Calls 3

ClearableIndexClass · 0.85
add_clearableMethod · 0.80
add_callableMethod · 0.45

Tested by

no test coverage detected