Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular-rust/ux-components
/ before
Method
before
src/elements/text_field.rs:228–230 ·
view source on GitHub ↗
cur: i32 = 0
(&self, cur: usize)
Source
from the content-addressed store, hash-verified
226
#[inline]
227
// cur: i32 = 0
228
pub fn before(&self, cur: usize) -> String {
229
self.state.borrow().edit.chars().take(cur).collect()
230
}
231
232
#[inline]
233
// cur: i32 = 0
Callers
1
textinput
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected