FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FuncTemplate

    struct · ferroui-controls · v0.5.0

    struct FuncTemplate<TControl>
    

    Creates a control from a function.

    TControl is the exact value produced. When the template is used as a setter value it must be the value type of the setter's property (for example Option<Ref<Control>>).

    View source

    Members

    new

    fn new(func: impl Fn() -> TControl + 'static) -> Rc<Self>
    

    Creates a template from the function used to create the control.

    Source

    Trait implementations

    Availability

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