# PluginObservationSource

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/observables/struct-pluginobservationsource/

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

```rust
struct PluginObservationSource
```

Chooses between the observation that the caller built for one step of a path and a registered
property observer that outranks the mechanism it was built from (`PluginObservationSource`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observables/plugin_observation_source.rs#L11)

## Members

- [`choose`](#function-choose)

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

### choose

```rust
fn choose<T: Clone + 'static>(source: &PropertyOwner, property_name: &str, before_change: bool, generated_affinity: i32, getter: impl Fn() -> Option<T> + 'static, generated: Rc<dyn IObservable<T>>) -> Rc<dyn IObservable<T>>
```

The observation of the registered observer when one outranks `generated_affinity`, without
a distinct gate; `generated` otherwise (`Choose<T>`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/observables/plugin_observation_source.rs#L16)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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