Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/audulus/rui
/ my_rectangle
Function
my_rectangle
examples/nested.rs:3–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
use rui::*;
2
3
fn my_rectangle() -> impl View {
4
rectangle()
5
.corner_radius(5.0)
6
.color(AZURE_HIGHLIGHT)
7
.padding(Auto)
8
}
9
10
fn main() {
11
hstack((
Callers
1
main
Function · 0.85
Calls
4
rectangle
Function · 0.85
padding
Method · 0.80
corner_radius
Method · 0.80
color
Method · 0.45
Tested by
no test coverage detected