FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IDataTemplate

    trait · ferroui-controls · v0.5.0

    trait IDataTemplate: ITemplateWithParam<Option<ferroui_base::BoxedValue>, Option<ferroui_base::Ref<crate::Control>>>
    

    Interface representing a template used to build a control for a piece of data.

    View source

    Members

    match_

    fn match_(self: &Self, data: Option<&BoxedValue>) -> bool
    

    Checks to see if this data template matches the specified data.

    Source

    as_recycling_data_template

    fn as_recycling_data_template(self: &Self) -> Option<&dyn IRecyclingDataTemplate>
    

    The template viewed as a recycling data template, if it is one.

    Source

    as_typed_data_template

    fn as_typed_data_template(self: &Self) -> Option<&dyn ITypedDataTemplate>
    

    The template viewed as a typed data template, if it is one.

    Source

    as_tree_data_template

    fn as_tree_data_template(self: &Self) -> Option<&dyn ITreeDataTemplate>
    

    The template viewed as a tree data template, if it is one.

    Source

    as_any

    fn as_any(self: &Self) -> Option<&dyn std::any::Any>
    

    The implementing value, for casting to its concrete type (as_any()?.downcast_ref::<T>()): the equivalent of is/as on the contract. None for an implementation that does not expose itself.

    Source

    Trait implementations

    Availability

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