LocatorExtensions
trait · ferroui-base · v0.5.0
trait LocatorExtensions: IFerroDependencyResolver
Typed lookups for every IFerroDependencyResolver.
Members
get_service
fn get_service<T: ?Sized + 'static>(self: &Self) -> Option<Rc<T>>
Returns the service registered for T, which may be a trait object
type (get_service::<dyn IFoo>() returns Option<Rc<dyn IFoo>>).
get_required_service_untyped
fn get_required_service_untyped(self: &Self, service_type: TypeId) -> ServiceHandle
Returns the service registered for service_type.
Panics
Panics when the service is not registered.
get_required_service
fn get_required_service<T: ?Sized + 'static>(self: &Self) -> Rc<T>
Returns the service registered for T.
Panics
Panics when the service is not registered.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.