FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AppBuilder

    struct · ferroui-splat · v0.5.0

    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, adding its core services before it builds the inner builder.

    View source

    Members

    new

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

    A builder over resolver (AppBuilder(IMutableDependencyResolver)).

    Source

    with_current

    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

    create_splat_builder

    fn create_splat_builder() -> Self
    

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

    Source

    has_been_built

    fn has_been_built() -> bool
    

    Whether an application was built (HasBeenBuilt).

    Source

    using_builder

    fn using_builder() -> bool
    

    Whether a builder was created (UsingBuilder).

    Source

    reset_builder_state_for_tests

    fn reset_builder_state_for_tests()
    

    Resets has_been_built and using_builder (ResetBuilderStateForTests).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IAppInstance
    • IAppBuilder

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.