# MaterialSpringEasing

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/motion/struct-materialspringeasing/

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

```rust
struct MaterialSpringEasing
```

Bridges a physical spring to FerroUI's normalized-progress `IEasing` interface.

Use the matching duration; the same spring with an unrelated duration changes its physical
speed. This adapter starts with zero velocity because `IEasing` has no velocity channel.
Controls needing interruption continuity use [`MaterialSpringState`](/docs/0.5.0/api/ferroui-themes-material/motion/struct-materialspringstate/) instead.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/motion.rs#L535)

## Members

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

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

### new

```rust
fn new(spec: MaterialSpringSpec, duration: SignedDuration, reduced_motion: bool) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/motion.rs#L544)

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

### spring_spec

```rust
fn spring_spec(self: &Self) -> MaterialSpringSpec
```

Parameters consumed by the velocity-preserving Material property transitions.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/motion.rs#L556)

## 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`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- `Clone`
- `Debug`
- [`IEasing`](/docs/0.5.0/api/ferroui-base/animation/easings/trait-ieasing/)

## Availability

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