MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / new

Method new

examples/src/counter.rs:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7impl CounterApp {
8 fn new() -> Self {
9 Self {
10 view: View::new()
11 .child(Text::new("Count: 0"))
12 .child(Button::new("Increment")),
13 }
14 }
15}
16
17impl Application for CounterApp {

Callers

nothing calls this directly

Calls 1

childMethod · 0.45

Tested by

no test coverage detected