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.
Members
register_singleton_viewregister_singleton_view_modelregister_viewregister_view_modelregister_constant_view_modelwith_platform_modulewith_suspension_host_ofwith_converter_ofwith_converter_of_factory
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>()).
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>()).
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>()).
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>()).
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>()).
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>()).
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>()).
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>)).
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>>)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.