MCPcopy Index your code
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 pub(crate) fn change_position(&mut self, pos: &str) {
61 if let Command::Figure { position, .. } | Command::Move { position, .. } = self {
62 *position = pos.to_string();
63 }
64 }
65
66 pub(crate) fn action(&self) -> &String {
67 if let Command::Move { action, .. } = self {
68 action
69 } else {

Callers 1

parse_blockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected