# ControlValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-controlvalue/

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

```rust
trait ControlValue: Clone + PartialEq + 'static
```

The value of a property of a view that holds a control: an `Rc` of the control, or an `Option`
of one. The control compares as its type does; a control that compares by identity reports
each new control.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/reactive_ui_binding_extensions_bind_command.rs#L69)

## Members

- [`Control`](#assoc_type-control)
- [`control`](#function-control)

<a id="assoc_type-control"></a>

### Control

```rust
type Control: 'static
```

The type of the control (`TControl`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/reactive_ui_binding_extensions_bind_command.rs#L71)

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

### control

```rust
fn control(self: &Self) -> Option<Rc<<Self as >::Control>>
```

The control the property holds, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/mixins/reactive_ui_binding_extensions_bind_command.rs#L74)

## Trait implementations

- [`ControlValue`](/docs/0.5.0/api/ferroui-reactiveui/binding/mixins/trait-controlvalue/)

## Availability

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