MCPcopy Index your code
hub / github.com/algoscienceacademy/RustUI / new

Method new

example/basic_app.rs:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16impl TodoApp {
17 pub fn new() -> Self {
18 let mut app = Self {
19 todos: Arc::new(Mutex::new(Vec::new())),
20 input: String::new(),
21 view: None,
22 };
23 app.rebuild_ui();
24 app
25 }
26
27 fn rebuild_ui(&mut self) {
28 let todos = self.todos.clone();

Callers

nothing calls this directly

Calls 1

rebuild_uiMethod · 0.45

Tested by

no test coverage detected