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

Method change_figure

src/script.rs:246–259  ·  view source on GitHub ↗
(&mut self, index: usize, distance: &str, position: &str)

Source from the content-addressed store, hash-verified

244 self.bgm.range(..=index).next_back()
245 }
246
247 pub(crate) fn get_background(&self, index: usize) -> Option<(&usize, &Command)> {
248 self.backgrounds.range(..=index).next_back()
249 }
250
251 pub(crate) fn get_figures(&self, index: usize) -> Option<(&usize, &Figure)> {
252 self.figures.range(..=index).next_back()
253 }
254
255 pub(crate) fn change_figure(
256 &mut self,
257 index: usize,
258 distance: &str,
259 position: &str,
260 ) -> Command {
261 let pos = format!("{distance}{position}");
262 let mut idx = 0;

Callers 1

parse_blockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected