# ObservableLeaf

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

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

```rust
trait ObservableLeaf: Clone + 'static
```

The value of a property that holds an observable: the observable itself, or an `Option` of it
(a property that may hold null).

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

## Members

- [`Item`](#assoc_type-item)
- [`observable`](#function-observable)
- [`same`](#function-same)

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

### Item

```rust
type Item: 'static
```

The type of the values of the observable.

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

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

### observable

```rust
fn observable(self: &Self) -> Option<Rc<dyn IObservable<<Self as >::Item>>>
```

The observable the property holds, if any.

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

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

### same

```rust
fn same(self: &Self, other: &Self) -> bool
```

Whether two values are the same observable (reference equality, as upstream compares them).

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

## Trait implementations

- [`ObservableLeaf`](/docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-observableleaf/)

## Availability

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