# StyleInstance

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/styling/struct-styleinstance/

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

```rust
struct StyleInstance
```

Stores state for a style that has been instanced on a control.

A style instance is created when a style is applied to a control. It is
responsible for tracking the setter instances of the style and its
activator, and is the value frame that holds the style's values in the
control's value store. A style without an activator whose setters are all
plain values has a single instance, shared by every control it applies to.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_instance.rs#L37)

## Members

- [`priority`](#function-priority)

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

### priority

```rust
fn priority(self: &Self) -> BindingPriority
```

The priority of the values of the style instance.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_instance.rs#L70)

## Trait implementations

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

## Availability

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