# PropertyValue

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/binding/struct-propertyvalue/

**struct** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
struct PropertyValue<T, V>
```

A value of a property and the object it was read from (`PropertyValue<TObject, TValue>`).

Upstream's value of a path that a null step interrupts is the default value of `TValue`, with a
flag (`UnobtainableValue`); here it is `None` (`value`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L10)

## Members

- [`new`](#function-new)
- [`unobtainable`](#function-unobtainable)
- [`sender`](#function-sender)
- [`value`](#function-value)
- [`into_value`](#function-into_value)
- [`is_unobtainable`](#function-is_unobtainable)

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

### new

```rust
fn new(sender: T, value: V) -> Self
```

The value of a property of `sender` (`PropertyValue(TObject sender, TValue value)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L17)

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

### unobtainable

```rust
fn unobtainable(sender: T) -> Self
```

A value that could not be read, as a step of the path was null
(`PropertyValue(TObject sender)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L23)

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

### sender

```rust
fn sender(self: &Self) -> &T
```

The object the value was read from (`Sender`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L28)

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

### value

```rust
fn value(self: &Self) -> Option<&V>
```

The value (`Value`); `None` when it could not be read.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L33)

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

### into_value

```rust
fn into_value(self: Self) -> Option<V>
```

The value, giving up the rest.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L38)

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

### is_unobtainable

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

Whether the value could not be read, as a step of the path was null (`UnobtainableValue`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/binding/property_value.rs#L43)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `Clone`
- `PartialEq`
- `Display`
- `Debug`

## Availability

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