# CompiledTimeline

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-animation/struct-compiledtimeline/

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

```rust
struct CompiledTimeline
```

Immutable validated timeline for the render loop. Recompile after an authored edit.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L518)

## Members

- [`sample`](#function-sample)
- [`scrub`](#function-scrub)
- [`duration`](#function-duration)
- [`total_duration`](#function-total_duration)

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

### sample

```rust
fn sample(self: &Self, time: f64) -> Result<Vec<Sample>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L520)

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

### scrub

```rust
fn scrub(self: &Self, time: f64) -> Result<Vec<Sample>>
```

Scrub the validated edit timeline without rescanning keyframes. As with
Timeline::scrub, delay, repeat and playback direction are intentionally ignored.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L525)

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

### duration

```rust
fn duration(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L529)

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

### total_duration

```rust
fn total_duration(self: &Self) -> Option<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L532)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`

## Availability

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