# PropertyOwner

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/component_model/struct-propertyowner/

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

```rust
struct PropertyOwner
```

The object that owns the property of one step of a path, as an observer chosen at run time
sees it (the `sender` of upstream's `ICreatesObservableForProperty`).

`object` is the object itself, which an observer downcasts to the types it knows; `notify` is
its change notification, when it raises `PropertyChanged`. A step that cannot give its object
(a `PropertyPath::value` step, or an `optional_property`
step whose object is `None`) leaves both `None`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/property_path.rs#L48)

## Members

- [`object`](#struct_field-object)
- [`notify`](#struct_field-notify)
- [`same_object`](#function-same_object)

<a id="struct_field-object"></a>

### object

```rust
object: Option<std::rc::Rc<dyn Any>>
```

The object that owns the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/property_path.rs#L50)

<a id="struct_field-notify"></a>

### notify

```rust
notify: Option<std::rc::Rc<dyn INotifyPropertyChanged>>
```

The change notification of the object, when it raises `PropertyChanged`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/property_path.rs#L52)

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

### same_object

```rust
fn same_object(self: &Self, other: &PropertyOwner) -> bool
```

Whether the two owners are the same object (reference equality, as .NET compares senders).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/component_model/property_path.rs#L57)

## Trait implementations

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

## Availability

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