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

Method load

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

Source from the content-addressed store, hash-verified

95 }
96
97 fn load(&mut self, name: Option<&str>, text: &str) {
98 self.name = name.map(str::to_owned);
99 text.clone_into(&mut self.text);
100 }
101
102 fn name(&self) -> Option<&str> {
103 self.name.as_deref()

Callers 2

async_execMethod · 0.45

Calls

no outgoing calls