# kept_units

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-build/theme_roots/function-kept_units/

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

```rust
fn kept_units(theme: &ferroui_build_scan::xaml_metadata::ThemeUnitsModel, roots: &Roots, graph: &TypeGraph, full_themes: bool) -> Vec<u32>
```

The canonical indices of the units of `theme` that `roots` keep, ascending (see the module
documentation). A live type makes the types of `TypeGraph::live` live. `full_themes` keeps
every unit.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/theme_roots.rs#L268)

## Availability

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