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

Method get_storage

std/src/lib.rs:456–461  ·  view source on GitHub ↗

Returns the storage subsystem that will be used for the machine.

(&mut self)

Source from the content-addressed store, hash-verified

454
455 /// Returns the storage subsystem that will be used for the machine.
456 pub fn get_storage(&mut self) -> Rc<RefCell<storage::Storage>> {
457 if self.storage.is_none() {
458 self.storage = Some(Rc::from(RefCell::from(storage::Storage::default())));
459 }
460 self.storage.clone().unwrap()
461 }
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 {

Callers 15

buildMethod · 0.45
test_cd_okFunction · 0.45
test_dir_with_disk_freeFunction · 0.45
test_dir_other_by_cwdFunction · 0.45
test_mount_listFunction · 0.45
test_unmount_okFunction · 0.45
test_autoexec_okFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_cd_okFunction · 0.36
test_dir_with_disk_freeFunction · 0.36
test_dir_other_by_cwdFunction · 0.36
test_mount_listFunction · 0.36
test_unmount_okFunction · 0.36
test_autoexec_okFunction · 0.36