# PreviewStageMatrix

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

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

```rust
struct PreviewStageMatrix
```

An empty environment axis keeps the base stage's value. Each nonempty axis
participates in the Cartesian product. State axes override only their named
owner/group; the base stage's other selected state endpoints remain intact.

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

## Members

- [`sizes`](#struct_field-sizes)
- [`themes`](#struct_field-themes)
- [`directions`](#struct_field-directions)
- [`design_time_data`](#struct_field-design_time_data)
- [`state_groups`](#struct_field-state_groups)
- [`count`](#function-count)
- [`expand`](#function-expand)

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

### sizes

```rust
sizes: Vec<PreviewStageMatrixSize>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L35)

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

### themes

```rust
themes: Vec<crate::PreviewTheme>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L37)

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

### directions

```rust
directions: Vec<crate::PreviewFlowDirection>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L39)

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

### design_time_data

```rust
design_time_data: Vec<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L41)

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

### state_groups

```rust
state_groups: Vec<PreviewStageStateAxis>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L43)

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

### count

```rust
fn count(self: &Self) -> Result<usize, String>
```

Validate descriptors and count without allocating the expanded product.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L48)

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

### expand

```rust
fn expand(self: &Self, base: &PreviewStageConfiguration, document: &Document, available: usize) -> Result<Vec<PreviewStageConfiguration>, String>
```

Produce deterministic configurations using the current authored source.
Invalid/ambiguous owners, definitions and state names reject the entire plan.
Native rendering failures after installation remain individual card diagnostics.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_stage_matrix.rs#L117)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `DeserializeOwned`
- `ErasedDestructor`
- `IntoEither`
- `Same`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `Clone`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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