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

Method before

src/elements/textedit.rs:227–229  ·  view source on GitHub ↗

cur: i32 = 0

(&self, cur: usize)

Source from the content-addressed store, hash-verified

225 #[inline]
226 // cur: i32 = 0
227 pub fn before(&self, cur: usize) -> String {
228 self.state.borrow().edit.chars().take(cur).collect()
229 }
230
231 #[inline]
232 // cur: i32 = 0

Callers 1

textinputMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected