FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Template

    struct · ferroui-markup-xaml · v0.5.0

    struct Template
    

    A template that builds a control.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    content

    fn content(self: &Self) -> Option<BoxedValue>
    

    The template content: deferred content built on each build.

    Source

    set_content

    fn set_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    build

    fn build(self: &Self) -> Option<Ref<Control>>
    

    Builds the control.

    Source

    as_template

    fn as_template(self: &Self) -> Rc<dyn ITemplateOf<Option<Ref<Control>>>>
    

    The template as the typed template contract.

    Source

    Trait implementations

    Availability

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