# IAppBuilder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/builder/trait-iappbuilder/

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

```rust
trait IAppBuilder
```

Configures the services of an application, then builds it (`IAppBuilder`). Each method returns
the builder, to chain the calls.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/builder/app_builder.rs#L24)

## Members

- [`build`](#function-build)
- [`use_current_splat_locator`](#function-use_current_splat_locator)
- [`using_module`](#function-using_module)
- [`with_core_services`](#function-with_core_services)
- [`with_custom_registration`](#function-with_custom_registration)

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

### build

```rust
fn build(self: &Self) -> &dyn IAppInstance
```

Applies the registrations and returns the application (`Build`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/builder/app_builder.rs#L26)

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

### use_current_splat_locator

```rust
fn use_current_splat_locator(self: &Self) -> &dyn IAppBuilder
```

Applies the registrations to the current resolver of `AppLocator` at build time instead
of the builder's (`UseCurrentSplatLocator`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/builder/app_builder.rs#L30)

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

### using_module

```rust
fn using_module(self: &Self, registration_module: Rc<dyn IModule>) -> &dyn IAppBuilder
```

Adds a module, whose registrations are applied at build time (`UsingModule<T>`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/builder/app_builder.rs#L33)

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

### with_core_services

```rust
fn with_core_services(self: &Self) -> &dyn IAppBuilder
```

Adds the core services (`WithCoreServices`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/builder/app_builder.rs#L36)

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

### with_custom_registration

```rust
fn with_custom_registration(self: &Self, configure_action: Rc<dyn Fn(&dyn IMutableDependencyResolver) -> ()>) -> &dyn IAppBuilder
```

Adds registrations, applied at build time (`WithCustomRegistration`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/builder/app_builder.rs#L39)

## Trait implementations

- [`IAppBuilder`](/docs/0.5.0/api/ferroui-splat/builder/trait-iappbuilder/)

## Availability

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