# switch_latest

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

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

```rust
fn switch_latest<T: 'static, L: ObservableLeaf>(sender: &std::rc::Rc<T>, path: ferroui_system::component_model::PropertyPath<std::rc::Rc<T>, L>) -> std::rc::Rc<dyn IObservable<<L as >::Item>>
```

The values of the latest observable that `path` holds on `sender`; an empty sequence stands in
while the path holds none (`SwitchLatest`).

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

## Availability

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