# PropertyKind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/core/trait-propertykind/

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

```rust
trait PropertyKind: 'static
```

States how the typed value of a property maps to the untyped values that
flow through a binding.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/clr_property_info.rs#L45)

## Members

- [`Typed`](#assoc_type-typed)
- [`value_type`](#function-value_type)
- [`register`](#function-register)
- [`to_untyped`](#function-to_untyped)
- [`from_untyped`](#function-from_untyped)

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

### Typed

```rust
type Typed
```

The type the property's accessors work with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/clr_property_info.rs#L47)

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

### value_type

```rust
fn value_type() -> ValueType
```

The value type reported for the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/clr_property_info.rs#L50)

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

### register

```rust
fn register()
```

Called once when a property of this kind is described.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/clr_property_info.rs#L53)

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

### to_untyped

```rust
fn to_untyped(value: <Self as >::Typed) -> Option<BoxedValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/clr_property_info.rs#L55)

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

### from_untyped

```rust
fn from_untyped(value: Option<&BoxedValue>) -> Option<<Self as >::Typed>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/clr_property_info.rs#L57)

## Trait implementations

- [`PropertyKind`](/docs/0.5.0/api/ferroui-base/data/core/trait-propertykind/)

## Availability

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