Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GCWing/BitFun
/ clear
Method
clear
src/apps/cli/src/ui/text_input.rs:185–189 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
183
}
184
185
pub fn clear(&mut self) {
186
self.input.clear();
187
self.cursor = 0;
188
self.scroll_offset = 0;
189
}
190
191
pub fn set_text(&mut self, text: &str) {
192
self.input = text.to_string();
Callers
1
take_input
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected