Function rect

Source
pub fn rect() -> Rect
Expand description

rect acts as a generic container to contain other elements inside, like a box.

Its the equivalent of view/div/container in other UI models.

See the available methods in Rect.

fn app() -> impl IntoElement {
    rect().expanded().background((0, 255, 0))
}