pub struct PropertyOwner {
pub object: Option<Rc<dyn Any>>,
pub notify: Option<Rc<dyn INotifyPropertyChanged>>,
}Expand description
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.
Fields§
§object: Option<Rc<dyn Any>>The object that owns the property.
notify: Option<Rc<dyn INotifyPropertyChanged>>The change notification of the object, when it raises PropertyChanged.
Implementations§
Source§impl PropertyOwner
impl PropertyOwner
Sourcepub fn same_object(&self, other: &PropertyOwner) -> bool
pub fn same_object(&self, other: &PropertyOwner) -> bool
Whether the two owners are the same object (reference equality, as .NET compares senders).
Trait Implementations§
Source§impl Clone for PropertyOwner
impl Clone for PropertyOwner
Source§impl Debug for PropertyOwner
impl Debug for PropertyOwner
Auto Trait Implementations§
impl !RefUnwindSafe for PropertyOwner
impl !Send for PropertyOwner
impl !Sync for PropertyOwner
impl !UnwindSafe for PropertyOwner
impl Freeze for PropertyOwner
impl Unpin for PropertyOwner
impl UnsafeUnpin for PropertyOwner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more