# TransitionObservableBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/animation/struct-transitionobservablebase/

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

```rust
struct TransitionObservableBase<T: 'static, F: Fn(f64) -> T + 'static>
```

Provides the base for observables implementing transitions: eases the
progress and produces the value for it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/transition_observable_base.rs#L8)

## Members

- [`new`](#function-new)
- [`progress`](#function-progress)

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

### new

```rust
fn new(progress: Rc<dyn IObservable<f64>>, easing: Easing, produce_value: F) -> Rc<Self>
```

Creates the observable. `produce_value` produces the value at the
given eased progress.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/transition_observable_base.rs#L20)

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

### progress

```rust
fn progress(self: &Self) -> &Rc<dyn IObservable<f64>>
```

The progress the transition is driven by.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/animation/transition_observable_base.rs#L32)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`SubscribeGuard<T>`](/docs/0.5.0/api/ferroui-base/reactive/use-subscribeguard/)
- `ErasedDestructor`
- `IntoEither`
- [`IObservable<T>`](/docs/0.5.0/api/ferroui-base/reactive/use-iobservable/)
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`IObserver<f64>`](/docs/0.5.0/api/ferroui-base/reactive/use-iobserver/)

## Availability

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