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

Method with_storage

std/src/lib.rs:470–473  ·  view source on GitHub ↗

Overrides the default storage subsystem with the given one.

(mut self, storage: Rc<RefCell<storage::Storage>>)

Source from the content-addressed store, hash-verified

468
469 /// Overrides the default storage subsystem with the given one.
470 pub fn with_storage(mut self, storage: Rc<RefCell<storage::Storage>>) -> Self {
471 self.storage = Some(storage);
472 self
473 }
474
475 /// Builds the interpreter.
476 pub fn build(mut self) -> Machine {

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