# box_item

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/function-box_item/

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

```rust
fn box_item<T: PropertyValue>(value: &T) -> Option<ferroui_base::BoxedValue>
```

Boxes a typed value as an item, erasing nullable wrappers to native null or
their contents. A value that already is untyped is passed through.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_source.rs#L420)

## Availability

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