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

Method with_program

std/src/lib.rs:464–467  ·  view source on GitHub ↗

Overrides the default stored program with the given one.

(mut self, program: Rc<RefCell<dyn program::Program>>)

Source from the content-addressed store, hash-verified

462
463 /// Overrides the default stored program with the given one.
464 pub fn with_program(mut self, program: Rc<RefCell<dyn program::Program>>) -> Self {
465 self.program = Some(program);
466 self
467 }
468
469 /// Overrides the default storage subsystem with the given one.
470 pub fn with_storage(mut self, storage: Rc<RefCell<storage::Storage>>) -> Self {

Callers 5

run_repl_loopFunction · 0.80
run_interactiveFunction · 0.80
build_machineMethod · 0.80
safe_run_repl_loopMethod · 0.80

Calls

no outgoing calls

Tested by 2

build_machineMethod · 0.64