MCPcopy Index your code
hub / github.com/RustOtomeLab/RustEng / with_name

Method with_name

src/script.rs:65–74  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

63 let script = fs::read_to_string(&path).map_err(|e| ScriptError::ReadFile {
64 path: path.clone(),
65 source: e,
66 })?;
67 self.parse_script(&script)?;
68 Ok(())
69 }
70
71 pub(crate) fn next_command(&mut self) -> Option<&Commands> {
72 let command = self.commands.get(self.current_block);
73 self.current_block += 1;
74 command
75 }
76
77 pub(crate) fn set_explain(&mut self, explain: &str) {

Callers 2

newMethod · 0.80
execute_jumpMethod · 0.80

Calls 1

parse_scriptMethod · 0.80

Tested by

no test coverage detected