# IPropertyInfo

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

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

```rust
trait IPropertyInfo
```

Describes a property of an object that is not a registered property: its
name, type and untyped accessors.

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

## Members

- [`name`](#function-name)
- [`get`](#function-get)
- [`try_get`](#function-try_get)
- [`set`](#function-set)
- [`can_set`](#function-can_set)
- [`can_get`](#function-can_get)
- [`property_type`](#function-property_type)
- [`as_any`](#function-as_any)
- [`get_boxed`](#function-get_boxed)
- [`try_get_boxed`](#function-try_get_boxed)
- [`set_boxed`](#function-set_boxed)
- [`as_ferro_property`](#function-as_ferro_property)

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

### name

```rust
fn name(self: &Self) -> &str
```

The name of the property.

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

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

### get

```rust
fn get(self: &Self, target: &dyn AnyValue) -> Option<BoxedValue>
```

Reads the property from `target`. Null is `None`.

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

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

### try_get

```rust
fn try_get(self: &Self, target: &dyn AnyValue) -> Result<Option<BoxedValue>, BindingError>
```

Reads the property from `target`. An `Err` is the equivalent of the
getter throwing, for example because `target` is not of the type that
declares the property.

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

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

### set

```rust
fn set(self: &Self, target: &dyn AnyValue, value: Option<&BoxedValue>) -> Result<(), BindingError>
```

Writes the property on `target`. An `Err` is the equivalent of the
setter throwing.

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

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

### can_set

```rust
fn can_set(self: &Self) -> bool
```



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

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

### can_get

```rust
fn can_get(self: &Self) -> bool
```



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

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

### property_type

```rust
fn property_type(self: &Self) -> ValueType
```

The type of the property's value.

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

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

### as_any

```rust
fn as_any(self: &Self) -> Option<&dyn std::any::Any>
```

The implementing value, for casting to its concrete type
(`as_any()?.downcast_ref::<T>()`): the equivalent of `is`/`as` on the
contract. `None` for an implementation that does not expose itself.

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

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

### get_boxed

```rust
fn get_boxed(self: &Self, target: &BoxedValue) -> Option<BoxedValue>
```

`get` for an owner known as an untyped handle. The
accessors of binding paths read through the boxed forms, so that a
property description whose accessors need the handle of the owner
(not only a view of it) can override them; the defaults forward to
the forms taking a view. Override the three boxed forms together.

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

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

### try_get_boxed

```rust
fn try_get_boxed(self: &Self, target: &BoxedValue) -> Result<Option<BoxedValue>, BindingError>
```

`try_get` for an owner known as an untyped handle.

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

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

### set_boxed

```rust
fn set_boxed(self: &Self, target: &BoxedValue, value: Option<&BoxedValue>) -> Result<(), BindingError>
```

`set` for an owner known as an untyped handle.

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

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

### as_ferro_property

```rust
fn as_ferro_property(self: &Self) -> Option<&'static FerroProperty>
```

The registered property this description is, if it is one (the cast
of a property description back to the registered property class).

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

## Trait implementations

- [`IPropertyInfo`](/docs/0.5.0/api/ferroui-base/data/core/trait-ipropertyinfo/)

## Availability

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