InpcPropertyAccessor
struct · ferroui-base · v0.5.0
struct InpcPropertyAccessor
A property accessor over an IPropertyInfo that listens to the owner's
property change notifications.
Members
new
fn new(reference: WeakValue, property: Rc<dyn IPropertyInfo>, inpc: Option<InpcLookup>) -> Rc<dyn IPropertyAccessor>
Creates an accessor for property of the object behind
reference. inpc views the object as a property change notifier;
None for an object that raises no notifications.
with_runtime_notifier
fn with_runtime_notifier(reference: WeakValue, property: Rc<dyn IPropertyInfo>) -> Rc<dyn IPropertyAccessor>
Creates an accessor for property of the object behind
reference, whose property change notifications are looked up at
run time: when the accessor subscribes, the object is asked (through
the metadata its type declared, see ModelTypes) whether it raises
property change notifications, as the cast to the notification
interface does in the managed original.
runtime_notifier
fn runtime_notifier() -> InpcLookup
The run-time lookup of the property change notifications of an object: through the metadata its type declared.
find_notifier
fn find_notifier(value: &dyn AnyValue) -> Option<&dyn INotifyPropertyChanged>
The property change notifications of an object, if the metadata its type declared says it raises them. This is the one place where the accessors of the string-path bindings decide whether an owner notifies.
for_notifying
fn for_notifying<O: INotifyPropertyChanged + 'static>(reference: WeakValue, property: Rc<dyn IPropertyInfo>) -> Rc<dyn IPropertyAccessor>
Creates an accessor for a property of owner type O, which raises
property change notifications.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIDisposableIPropertyAccessorDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.