FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReactiveUIBuilderMixins

    trait · ferroui-reactiveui · v0.5.0

    trait ReactiveUIBuilderMixins
    

    The view registration, view modules and converters of a builder (BuilderMixins).

    View source

    Members

    register_views

    fn register_views(self: &Self, configure: impl FnOnce(ViewMappingBuilder<'_>) -> ()) -> &Self
    

    Maps views to view models on the registered DefaultViewLocator, through its mapping builder (RegisterViews(Action<ViewMappingBuilder>)).

    Panics

    When the registered view locator is not a DefaultViewLocator (InvalidOperationException).

    Source

    with_view_module

    fn with_view_module<M: IViewModule + Default>(self: &Self) -> &Self
    

    Maps the views of a new M on the registered DefaultViewLocator (WithViewModule<TModule>()).

    Panics

    When the registered view locator is not a DefaultViewLocator (InvalidOperationException).

    Source

    with_converters

    fn with_converters(self: &Self, converters: &[Rc<dyn IBindingTypeConverter>]) -> &Self
    

    Registers each of converters (WithConverters(params IBindingTypeConverter[])).

    Source

    Trait implementations

    Availability

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