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

Method load

std/src/testutils.rs:550–554  ·  view source on GitHub ↗
(&mut self, name: Option<&str>, text: &str)

Source from the content-addressed store, hash-verified

548 }
549
550 fn load(&mut self, name: Option<&str>, text: &str) {
551 self.name = name.map(str::to_owned);
552 text.clone_into(&mut self.content);
553 self.dirty = false;
554 }
555
556 fn name(&self) -> Option<&str> {
557 self.name.as_deref()

Callers 1

set_programMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected