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

Method set_explain

src/script.rs:82–88  ·  view source on GitHub ↗
(&mut self, explain: &str)

Source from the content-addressed store, hash-verified

80 explain = &explain[0..18];
81 }
82 self.explain = format!("{}{}", explain, "...");
83 }
84
85 pub(crate) fn set_index(&mut self, index: usize) {
86 self.current_block = index;
87 }
88
89 pub(crate) fn set_offset(&mut self, offset: i32) {
90 let new_offset = (self.backlog_offset as i32 + offset).max(0);
91 // 不能超过最大可偏移量

Callers 1

apply_commandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected