# ReadonlyDependencyResolverExt

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/service_location/trait-readonlydependencyresolverext/

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

```rust
trait ReadonlyDependencyResolverExt: IReadonlyDependencyResolver
```

The generic forms of [`IReadonlyDependencyResolver`](/docs/0.5.0/api/ferroui-splat/service_location/trait-ireadonlydependencyresolver/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver.rs#L99)

## Members

- [`get_service`](#function-get_service)
- [`get_service_with_contract`](#function-get_service_with_contract)
- [`get_services`](#function-get_services)
- [`get_services_with_contract`](#function-get_services_with_contract)

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

### get_service

```rust
fn get_service<S: ?Sized + 'static>(self: &Self) -> Option<Rc<S>>
```

`GetService<T>()`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver.rs#L101)

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

### get_service_with_contract

```rust
fn get_service_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>) -> Option<Rc<S>>
```

`GetService<T>(string? contract)`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver.rs#L106)

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

### get_services

```rust
fn get_services<S: ?Sized + 'static>(self: &Self) -> Vec<Rc<S>>
```

`GetServices<T>()`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver.rs#L112)

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

### get_services_with_contract

```rust
fn get_services_with_contract<S: ?Sized + 'static>(self: &Self, contract: Option<&str>) -> Vec<Rc<S>>
```

`GetServices<T>(string? contract)`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/service_location/dependency_resolver.rs#L117)

## Trait implementations

- [`ReadonlyDependencyResolverExt`](/docs/0.5.0/api/ferroui-splat/service_location/trait-readonlydependencyresolverext/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
