Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
impl 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
17
impl Application for CounterApp {
Callers
nothing calls this directly
Calls
1
child
Method · 0.45
Tested by
no test coverage detected