FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MutableDependencyResolverExt

    trait · ferroui-splat · v0.5.0

    trait MutableDependencyResolverExt: IMutableDependencyResolver
    

    The generic forms of IMutableDependencyResolver.

    View source

    Members

    has_registration

    fn has_registration<S: ?Sized + 'static>(self: &Self) -> bool
    

    HasRegistration<T>().

    Source

    has_registration_with_contract

    fn has_registration_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>) -> bool
    

    HasRegistration<T>(string? contract).

    Source

    register

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

    Register<T>(Func<T?>).

    Source

    register_with_contract

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

    Register<T>(Func<T?>, string? contract).

    Source

    register_constant

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

    RegisterConstant<T>(T).

    Source

    register_constant_with_contract

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

    RegisterConstant<T>(T, string? contract).

    Source

    register_constant_disposable

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

    RegisterConstant<T>(T) of a constant that the resolver disposes when it is disposed.

    Source

    register_constant_disposable_with_contract

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

    RegisterConstant<T>(T, string? contract) of a constant that the resolver disposes when it is disposed.

    Source

    register_lazy_singleton

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

    RegisterLazySingleton<T>(Func<T?>).

    Source

    register_lazy_singleton_with_contract

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

    RegisterLazySingleton<T>(Func<T?>, string? contract).

    Source

    register_lazy_singleton_disposable

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

    RegisterLazySingleton<T>(Func<T?>) of a singleton that the resolver disposes, once created, when it is disposed.

    Source

    register_lazy_singleton_disposable_with_contract

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

    RegisterLazySingleton<T>(Func<T?>, string? contract) of a singleton that the resolver disposes, once created, when it is disposed.

    Source

    unregister_current

    fn unregister_current<S: ?Sized + 'static>(self: &Self)
    

    UnregisterCurrent<T>().

    Source

    unregister_current_with_contract

    fn unregister_current_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>)
    

    UnregisterCurrent<T>(string? contract).

    Source

    unregister_all

    fn unregister_all<S: ?Sized + 'static>(self: &Self)
    

    UnregisterAll<T>().

    Source

    unregister_all_with_contract

    fn unregister_all_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>)
    

    UnregisterAll<T>(string? contract).

    Source

    service_registration_callback

    fn service_registration_callback<S: ?Sized + 'static>(self: &Self, callback: impl Fn(&dyn IDisposable) -> () + 'static) -> Rc<dyn IDisposable>
    

    ServiceRegistrationCallback<T>(Action<IDisposable>).

    Source

    service_registration_callback_with_contract

    fn service_registration_callback_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>, callback: impl Fn(&dyn IDisposable) -> () + 'static) -> Rc<dyn IDisposable>
    

    ServiceRegistrationCallback<T>(string? contract, Action<IDisposable>).

    Source

    Trait implementations

    Availability

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