MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / change_position

Method change_position

src/parser/script_parser.rs:62–66  ·  view source on GitHub ↗
(&mut self, pos: &str)

Source from the content-addressed store, hash-verified

60 }
61
62 pub(crate) fn change_position(&mut self, pos: &str) {
63 if let Command::Figure { position, .. } | Command::Move { position, .. } = self {
64 *position = pos.to_string();
65 }
66 }
67
68 pub(crate) fn action(&self) -> &String {
69 if let Command::Move { action, .. } = self {

Callers 1

parse_blockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected