FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ResolverMixins

    trait · ferroui-splat · v0.5.0

    trait ResolverMixins: IMutableDependencyResolver
    

    Registrations that return the resolver (ResolverMixins).

    TService : new() is S: Default.

    View source

    Members

    register_and

    fn register_and<S: Default + 'static>(self: &Self) -> &Self
    

    RegisterAnd<TService>(): a new S per resolution.

    Source

    register_and_with_contract

    fn register_and_with_contract<S: Default + 'static>(self: &Self, contract: &str) -> &Self
    

    RegisterAnd<TService>(string contract).

    Source

    register_and_factory

    fn register_and_factory<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static) -> &Self
    

    RegisterAnd<TService>(Func<TService>).

    Source

    register_and_factory_with_contract

    fn register_and_factory_with_contract<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static, contract: &str) -> &Self
    

    RegisterAnd<TService>(Func<TService>, string contract).

    Source

    register_constant_and

    fn register_constant_and<S: Default + 'static>(self: &Self) -> &Self
    

    RegisterConstantAnd<TService>(): one new S, registered as a factory that returns it.

    Source

    register_constant_and_with_contract

    fn register_constant_and_with_contract<S: Default + 'static>(self: &Self, contract: &str) -> &Self
    

    RegisterConstantAnd<TService>(string contract).

    Source

    register_constant_and_value

    fn register_constant_and_value<S: ?Sized + 'static>(self: &Self, value: Rc<S>) -> &Self
    

    RegisterConstantAnd<TService>(TService value).

    Source

    register_constant_and_value_with_contract

    fn register_constant_and_value_with_contract<S: ?Sized + 'static>(self: &Self, value: Rc<S>, contract: &str) -> &Self
    

    RegisterConstantAnd<TService>(TService value, string contract).

    Source

    register_lazy_singleton_and

    fn register_lazy_singleton_and<S: Default + 'static>(self: &Self) -> &Self
    

    RegisterLazySingletonAnd<TService>(): one S, created on the first resolution.

    Source

    register_lazy_singleton_and_with_contract

    fn register_lazy_singleton_and_with_contract<S: Default + 'static>(self: &Self, contract: &str) -> &Self
    

    RegisterLazySingletonAnd<TService>(string contract).

    Source

    register_lazy_singleton_and_factory

    fn register_lazy_singleton_and_factory<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static) -> &Self
    

    RegisterLazySingletonAnd<TService>(Func<TService>).

    Source

    register_lazy_singleton_and_factory_with_contract

    fn register_lazy_singleton_and_factory_with_contract<S: ?Sized + 'static>(self: &Self, factory: impl Fn() -> Rc<S> + 'static, contract: &str) -> &Self
    

    RegisterLazySingletonAnd<TService>(Func<TService>, string contract).

    Source

    Trait implementations

    Availability

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