# HotLiteral

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/hot/trait-hotliteral/

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

```rust
trait HotLiteral: Sized + 'static
```

A literal that hot reload can give another value: what the text of the
literal in the source parses to.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/hot.rs#L38)

## Members

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

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

### from_literal

```rust
fn from_literal(text: &str) -> Option<Self>
```

The value of the literal written as `text` in the source, if it is
one of this type.

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

## Trait implementations

- [`HotLiteral`](/docs/0.5.0/api/ferroui-view/hot/trait-hotliteral/)

## Availability

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