FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReactiveUIBuilderExt

    trait · ferroui-reactiveui · v0.5.0

    trait ReactiveUIBuilderExt: IReactiveUIBuilder
    

    The generic methods of IReactiveUIBuilder (RegisterView<TView, TViewModel>, RegisterViewModel<TViewModel>, WithPlatformModule<T>, WithSuspensionHost<TAppState>, WithConverter<TFrom, TTo>), which every builder has.

    View source

    Members

    register_singleton_view

    fn register_singleton_view<V: IViewForOf<VM> + Default + 'static, VM: IReactiveObject>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Registers V as the view of VM, one view created at the first resolution (RegisterSingletonView<TView, TViewModel>()).

    Source

    register_singleton_view_model

    fn register_singleton_view_model<VM: IReactiveObject + Default>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Registers VM, one view model created at the first resolution (RegisterSingletonViewModel<TViewModel>()).

    Source

    register_view

    fn register_view<V: IViewForOf<VM> + Default + 'static, VM: IReactiveObject>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Registers V as the view of VM, a new view at each resolution (RegisterView<TView, TViewModel>()).

    Source

    register_view_model

    fn register_view_model<VM: IReactiveObject + Default>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Registers VM, a new view model at each resolution (RegisterViewModel<TViewModel>()).

    Source

    register_constant_view_model

    fn register_constant_view_model<VM: IReactiveObject + Default>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Registers one view model of VM, created now, as a constant (RegisterConstantViewModel<TViewModel>()).

    Source

    with_platform_module

    fn with_platform_module<T: IWantsToRegisterStuff + Default>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Applies the registrations of a new T at once (WithPlatformModule<T>()).

    Source

    with_suspension_host_of

    fn with_suspension_host_of<T: 'static>(self: &Self) -> &dyn IReactiveUIBuilder
    

    Sets a suspension host of an application state of type T (WithSuspensionHost<TAppState>()).

    Source

    with_converter_of

    fn with_converter_of<F: 'static, T: 'static>(self: &Self, converter: Rc<dyn IBindingTypeConverterOf<F, T>>) -> &dyn IReactiveUIBuilder
    

    Registers a converter of F to T (WithConverter<TFrom, TTo>(IBindingTypeConverter<TFrom, TTo>)).

    Source

    with_converter_of_factory

    fn with_converter_of_factory<F: 'static, T: 'static>(self: &Self, factory: impl FnOnce() -> Rc<dyn IBindingTypeConverterOf<F, T>>) -> &dyn IReactiveUIBuilder
    

    Registers the converter of F to T that factory creates (WithConverter<TFrom, TTo>(Func<IBindingTypeConverter<TFrom, TTo>>)).

    Source

    Trait implementations

    Availability

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