# FromValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/

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

```rust
trait FromValue<T>: Sized
```

A conversion of a value of a property back to the type of a signal, for
a two-way value: the reverse of [`IntoValue`](/docs/0.5.0/api/ferroui-view/builder/trait-intovalue/).

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

## Members

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

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

### from_value

```rust
fn from_value(value: &T) -> Option<Self>
```

The value of the signal, or `None` when the value of the property has
none (the signal keeps its value).

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

## Trait implementations

- [`FromValue<T>`](/docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/)
- [`FromValue<Option<T>>`](/docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/)

## Availability

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