Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/audulus/rui
/ toggle_example
Function
toggle_example
examples/gallery.rs:25–30 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
}
24
25
fn toggle_example() -> impl View {
26
hstack((
27
caption(
"toggle"
),
28
state(|| false, |s, _| toggle(s).size([30.0, 30.0]).padding(Auto)),
29
))
30
}
31
32
fn text_editor_example() -> impl View {
33
hstack((
Callers
1
main
Function · 0.85
Calls
6
hstack
Function · 0.85
caption
Function · 0.85
state
Function · 0.85
toggle
Function · 0.85
padding
Method · 0.80
size
Method · 0.45
Tested by
no test coverage detected