# AppBuilder

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/builder/struct-appbuilder/

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

```rust
struct AppBuilder
```

The builder of Splat (`AppBuilder`): it collects modules and registrations and applies them
once, when the application is built for the first time.

Upstream subclasses override `WithCoreServices`; a builder built on this one wraps it and
implements [`IAppBuilder`](/docs/0.5.0/api/ferroui-splat/builder/trait-iappbuilder/), adding its core services before it builds the inner builder.

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

## Members

- [`new`](#function-new)
- [`with_current`](#function-with_current)
- [`create_splat_builder`](#function-create_splat_builder)
- [`has_been_built`](#function-has_been_built)
- [`using_builder`](#function-using_builder)
- [`reset_builder_state_for_tests`](#function-reset_builder_state_for_tests)

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

### new

```rust
fn new(resolver: Rc<dyn IMutableDependencyResolver>) -> Self
```

A builder over `resolver` (`AppBuilder(IMutableDependencyResolver)`).

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

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

### with_current

```rust
fn with_current(resolver: Rc<dyn IMutableDependencyResolver>, current: Option<Rc<dyn IReadonlyDependencyResolver>>) -> Self
```

A builder over `resolver`, with `current` as the resolver of the application
(`AppBuilder(IMutableDependencyResolver, IReadonlyDependencyResolver?)`).

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

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

### create_splat_builder

```rust
fn create_splat_builder() -> Self
```

A builder over the current resolver of `AppLocator` (`CreateSplatBuilder`).

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

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

### has_been_built

```rust
fn has_been_built() -> bool
```

Whether an application was built (`HasBeenBuilt`).

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

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

### using_builder

```rust
fn using_builder() -> bool
```

Whether a builder was created (`UsingBuilder`).

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

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

### reset_builder_state_for_tests

```rust
fn reset_builder_state_for_tests()
```

Resets `has_been_built` and `using_builder`
(`ResetBuilderStateForTests`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IAppInstance`](/docs/0.5.0/api/ferroui-splat/builder/trait-iappinstance/)
- [`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/).
