# MotionProperty

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/motion/struct-motionproperty/

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

```rust
struct MotionProperty<T: Interpolate>
```

A retargetable value on a host-owned animation timeline.

The timeline has no global clock, platform timer or thread dependency. A
compositor/dispatcher supplies one timestamp to every property in a frame.

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

## Members

- [`from_value`](#struct_field-from_value)
- [`to_value`](#struct_field-to_value)
- [`default_value`](#struct_field-default_value)
- [`animation`](#struct_field-animation)
- [`new`](#function-new)
- [`is_completed`](#function-is_completed)
- [`repeat_count`](#function-repeat_count)
- [`set_movement`](#function-set_movement)
- [`get_movement`](#function-get_movement)
- [`finish`](#function-finish)
- [`copy_from`](#function-copy_from)

<a id="struct_field-from_value"></a>

### from_value

```rust
from_value: T
```



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

<a id="struct_field-to_value"></a>

### to_value

```rust
to_value: T
```



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

<a id="struct_field-default_value"></a>

### default_value

```rust
default_value: T
```



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

<a id="struct_field-animation"></a>

### animation

```rust
animation: Option<super::Animation>
```



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

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

### new

```rust
fn new(default_value: T) -> Self
```



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

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

### is_completed

```rust
fn is_completed(self: &Self) -> bool
```



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

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

### repeat_count

```rust
fn repeat_count(self: &Self) -> u32
```



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

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

### set_movement

```rust
fn set_movement(self: &mut Self, value: T, now_ms: f64)
```



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

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

### get_movement

```rust
fn get_movement(self: &mut Self, now_ms: f64) -> T
```



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

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

### finish

```rust
fn finish(self: &mut Self)
```



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

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

### copy_from

```rust
fn copy_from(self: &mut Self, source: &Self)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Default`

## Availability

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