# BuilderMixins

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-buildermixins/

**trait** · [`ferroui-reactiveui`](/docs/0.5.0/api/ferroui-reactiveui/) · v0.5.0

```rust
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`](/docs/0.5.0/api/ferroui-reactiveui/binding/builder/struct-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`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L32)

## Members

- [`build_app`](#function-build_app)
- [`with_platform_module`](#function-with_platform_module)
- [`with_registration`](#function-with_registration)
- [`with_converter`](#function-with_converter)
- [`with_fallback_converter`](#function-with_fallback_converter)
- [`with_set_method_converter`](#function-with_set_method_converter)
- [`configure_view_locator`](#function-configure_view_locator)

<a id="function-build_app"></a>

### build_app

```rust
fn build_app(self: &Self) -> Rc<dyn IReactiveUIBindingInstance>
```

Builds the application (`BuildApp`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L34)

<a id="function-with_platform_module"></a>

### with_platform_module

```rust
fn with_platform_module<M: IModule + 'static>(self: &Self, module: M) -> Rc<ReactiveUIBindingBuilder>
```

Adds the module of a platform (`WithPlatformModule<T>`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L37)

<a id="function-with_registration"></a>

### with_registration

```rust
fn with_registration(self: &Self, configure_action: impl FnOnce(&dyn IMutableDependencyResolver) -> ()) -> Rc<ReactiveUIBindingBuilder>
```

Runs `configure_action` on the resolver now (`WithRegistration`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L40)

<a id="function-with_converter"></a>

### with_converter

```rust
fn with_converter(self: &Self, converter: Rc<dyn IBindingTypeConverter>) -> Rc<ReactiveUIBindingBuilder>
```

Registers a converter of a pair of types (`WithConverter`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L43)

<a id="function-with_fallback_converter"></a>

### with_fallback_converter

```rust
fn with_fallback_converter(self: &Self, converter: Rc<dyn IBindingFallbackConverter>) -> Rc<ReactiveUIBindingBuilder>
```

Registers a fallback converter (`WithFallbackConverter`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L46)

<a id="function-with_set_method_converter"></a>

### with_set_method_converter

```rust
fn with_set_method_converter(self: &Self, converter: Rc<dyn ISetMethodBindingConverter>) -> Rc<ReactiveUIBindingBuilder>
```

Registers a converter of set methods (`WithSetMethodConverter`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L49)

<a id="function-configure_view_locator"></a>

### configure_view_locator

```rust
fn configure_view_locator(self: &Self, configure: impl FnOnce(&ViewMappingBuilder<'_>) -> ()) -> Rc<ReactiveUIBindingBuilder>
```

Registers a view locator with the mappings `configure` adds (`ConfigureViewLocator`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/builder_mixins.rs#L52)

## Trait implementations

- [`BuilderMixins`](/docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-buildermixins/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
