# Interpolate

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/motion/trait-interpolate/

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

```rust
trait Interpolate: Clone
```

Typed interpolation replaces the generated hierarchy of motion properties.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/motion/interpolate.rs#L4)

## Members

- [`can_interpolate`](#function-can_interpolate)
- [`interpolate`](#function-interpolate)

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

### can_interpolate

```rust
fn can_interpolate(from: &Self, to: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/motion/interpolate.rs#L5)

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

### interpolate

```rust
fn interpolate(from: &Self, to: &Self, progress: f64) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/motion/interpolate.rs#L9)

## Trait implementations

- [`Interpolate`](/docs/0.5.0/api/ferroui-livecharts/motion/trait-interpolate/)

## Availability

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