# CacheSourceListCombineEx

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

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

```rust
trait CacheSourceListCombineEx
```

`And`, `Or`, `Xor` and `Except` of an observable list of sources (`And(this
IObservableList<IObservable<IChangeSet<TObject, TKey>>>)`, `And(this
IObservableList<IObservableCache<TObject, TKey>>)`, `And(this
IObservableList<ISourceCache<TObject, TKey>>)`, ..): the result follows the sources as they are
added to the list and removed from it.

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

## 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#L200)

<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#L202)

<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 of the list; none while the list is empty
(`And(IObservableList<..>)`).

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

<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 of the list (`Or(IObservableList<..>)`).

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

<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 of the list (`Xor(IObservableList<..>)`).

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

<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 of the list that are in none of the others
(`Except(IObservableList<..>)`).

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

## Trait implementations

- [`CacheSourceListCombineEx`](/docs/0.5.0/api/ferroui-dynamic-data/cache/trait-cachesourcelistcombineex/)

## Availability

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