FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    show

    function · ferroui-view · v0.5.0

    fn show<E: IntoElement>(when: impl Fn() -> bool + 'static, then: impl Fn() -> E + 'static) -> crate::element::Element
    

    The children of then while when is true, and nothing otherwise. The children are made again only when the condition changes.

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.