# AnimationCodecRegistry

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

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

```rust
struct AnimationCodecRegistry
```



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

## Members

- [`register`](#function-register)
- [`codec_ids`](#function-codec_ids)
- [`decode`](#function-decode)
- [`encode`](#function-encode)

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

### register

```rust
fn register(self: &mut Self, codec: Box<dyn AnimationCodec>)
```



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

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

### codec_ids

```rust
fn codec_ids(self: &Self) -> impl Iterator<Item = &str>
```



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

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

### decode

```rust
fn decode(self: &Self, program: &mut AnimationProgram, source: &str, options: &ImportOptions)
```



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

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

### encode

```rust
fn encode(self: &Self, program: &AnimationProgram, original: &str, timeline: &Timeline) -> Result<String>
```



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

## Trait implementations

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

## Availability

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