# CacheSourcesCombineEx

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/cache/trait-cachesourcescombineex/

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

```rust
trait CacheSourcesCombineEx
```

`And`, `Or`, `Xor` and `Except` of a collection of sources (`And(this
ICollection<IObservable<IChangeSet<TObject, TKey>>>)`, ..): the sources are subscribed in
order when the result is subscribed.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L125)

## Members

- [`Item`](#assoc_type-item)
- [`Key`](#assoc_type-key)
- [`and_cache`](#function-and_cache)
- [`or`](#function-or)
- [`xor`](#function-xor)
- [`except`](#function-except)

<a id="assoc_type-item"></a>

### Item

```rust
type Item: Clone + 'static
```

The type of the items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L127)

<a id="assoc_type-key"></a>

### Key

```rust
type Key: Eq + Hash + Clone + 'static
```

The type of the keys.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L129)

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

### and_cache

```rust
fn and_cache(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
where <Self as >::Item: Deref
```

The items that are in every source (`And(ICollection<..>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L132)

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

### or

```rust
fn or(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
where <Self as >::Item: Deref
```

The items that are in any source (`Or(ICollection<..>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L137)

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

### xor

```rust
fn xor(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
where <Self as >::Item: Deref
```

The items that are in exactly one source (`Xor(ICollection<..>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L142)

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

### except

```rust
fn except(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
where <Self as >::Item: Deref
```

The items of the first source that are in none of the others (`Except(ICollection<..>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/ops/combine.rs#L147)

## Trait implementations

- [`CacheSourcesCombineEx`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-cachesourcescombineex/)

## Availability

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