# WhenAnyPaths

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-whenanypaths/

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

```rust
trait WhenAnyPaths<T: 'static>: 'static
```

The property paths of one observation of an object of type `T`: one `PropertyPath`, or a
tuple of 2 to 16 of them.

Upstream overloads `WhenAnyValue`, `WhenAny`, `WhenChanged` and `WhenChanging` by the number of
expressions (1 to 16); here the paths are one argument, and this trait gives the type of their
values (`V`, or the tuple `(V1, ..., Vn)` for upstream's `PropertyValues<T1, ..., Tn>`) and of
their changes.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/when_any_value.rs#L21)

## Members

- [`Values`](#assoc_type-values)
- [`Changes`](#assoc_type-changes)
- [`observe_values`](#function-observe_values)
- [`observe_changes`](#function-observe_changes)

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

### Values

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

The values of the paths: `V` for one path, `(V1, ..., Vn)` for a tuple.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/when_any_value.rs#L23)

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

### Changes

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

The changes of the paths: `ObservedChange<Rc<T>, V>` for one path, a tuple of them for a
tuple.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/when_any_value.rs#L26)

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

### observe_values

```rust
fn observe_values(self: Self, source: &Rc<T>, before_change: bool) -> Rc<dyn IObservable<<Self as >::Values>>
```

The latest values of the paths on `source`, after each change or before it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/when_any_value.rs#L29)

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

### observe_changes

```rust
fn observe_changes(self: Self, source: &Rc<T>, before_change: bool) -> Rc<dyn IObservable<<Self as >::Changes>>
```

The latest changes of the paths on `source`, after each change or before it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/when_any_value.rs#L32)

## Trait implementations

- [`WhenAnyPaths<T>`](/docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-whenanypaths/)

## Availability

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