# from_markup_value

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/metadata/function-from_markup_value/

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

```rust
fn from_markup_value<T: Clone + 'static>(value: &MarkupValue) -> Option<T>
```

Converts an untyped value to the Rust type `T` with the assignability
casts of [`ValueTypes`](/docs/0.5.0/api/ferroui-base/data/core/struct-valuetypes/). `None` if the value is not assignable to `T`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L297)

## Availability

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