MCPcopy Create free account
hub / github.com/angular-rust/ux-components / cut

Method cut

src/elements/textedit.rs:214–217  ·  view source on GitHub ↗

start: i32 = 0, count: i32 = 1

(&self, start: usize, count: usize)

Source from the content-addressed store, hash-verified

212 #[inline]
213 // start: i32 = 0, count: i32 = 1
214 pub fn cut(&self, start: usize, count: usize) -> String {
215 let text: String = self.after(start).chars().skip(count).collect();
216 self.refresh(format!("{}{}", self.before(start), text), true, true)
217 }
218
219 #[inline]
220 // cur: i32 = 0

Callers 1

keydownMethod · 0.45

Calls 2

afterMethod · 0.45
refreshMethod · 0.45

Tested by

no test coverage detected