BuilderMixins
trait · ferroui-reactiveui · v0.5.0
trait BuilderMixins
Continues a chain of a builder of ReactiveUI.Binding from a &dyn IAppBuilder
(BuilderMixins), such as the one IAppBuilder::with_core_services returns. Each method
panics with an InvalidOperationException message when the builder is not a
ReactiveUIBindingBuilder.
Deviation (DEVIATIONS.md, ReactiveUI): upstream casts the IAppBuilder to
IReactiveUIBindingBuilder; Rust cannot cast a trait object to another trait, so the builder is
found among the builders of the thread by its address
(ReactiveUIBindingBuilder::find). The methods return the builder (Rc).
Members
build_appwith_platform_modulewith_registrationwith_converterwith_fallback_converterwith_set_method_converterconfigure_view_locator
build_app
fn build_app(self: &Self) -> Rc<dyn IReactiveUIBindingInstance>
Builds the application (BuildApp).
with_platform_module
fn with_platform_module<M: IModule + 'static>(self: &Self, module: M) -> Rc<ReactiveUIBindingBuilder>
Adds the module of a platform (WithPlatformModule<T>).
with_registration
fn with_registration(self: &Self, configure_action: impl FnOnce(&dyn IMutableDependencyResolver) -> ()) -> Rc<ReactiveUIBindingBuilder>
Runs configure_action on the resolver now (WithRegistration).
with_converter
fn with_converter(self: &Self, converter: Rc<dyn IBindingTypeConverter>) -> Rc<ReactiveUIBindingBuilder>
Registers a converter of a pair of types (WithConverter).
with_fallback_converter
fn with_fallback_converter(self: &Self, converter: Rc<dyn IBindingFallbackConverter>) -> Rc<ReactiveUIBindingBuilder>
Registers a fallback converter (WithFallbackConverter).
with_set_method_converter
fn with_set_method_converter(self: &Self, converter: Rc<dyn ISetMethodBindingConverter>) -> Rc<ReactiveUIBindingBuilder>
Registers a converter of set methods (WithSetMethodConverter).
configure_view_locator
fn configure_view_locator(self: &Self, configure: impl FnOnce(&ViewMappingBuilder<'_>) -> ()) -> Rc<ReactiveUIBindingBuilder>
Registers a view locator with the mappings configure adds (ConfigureViewLocator).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.