# MergeResourceInclude

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/styling/struct-mergeresourceinclude/

**struct** · [`ferroui-markup-xaml`](/docs/0.5.0/api/ferroui-markup-xaml/) · v0.5.0

```rust
struct MergeResourceInclude
```

Loads a resource dictionary from a specified URL.

When used in runtime, this type behaves like [`ResourceInclude`](/docs/0.5.0/api/ferroui-markup-xaml/styling/struct-resourceinclude/). But
when the XAML compiler sees it in the merged dictionaries of a resource
dictionary, it merges the included document into the including one at
compile time, which makes the lookup of its resources cheaper.

The managed class derives from [`ResourceInclude`](/docs/0.5.0/api/ferroui-markup-xaml/styling/struct-resourceinclude/) and adds nothing;
here it holds one and dereferences to it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/styling/merge_resource_include.rs#L19)

## Members

- [`new`](#function-new)
- [`with_service_provider`](#function-with_service_provider)
- [`base`](#function-base)

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

### new

```rust
fn new(base_uri: Option<url::Url>) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/styling/merge_resource_include.rs#L24)

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

### with_service_provider

```rust
fn with_service_provider(service_provider: Rc<dyn IServiceProvider>) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/styling/merge_resource_include.rs#L28)

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

### base

```rust
fn base(self: &Self) -> &Rc<ResourceInclude>
```

The include this one is (the base class part).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/styling/merge_resource_include.rs#L33)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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