pub struct DataValidationBase {
pub base: PropertyAccessorBase,
pub inner: Rc<dyn IPropertyAccessor>,
}Expand description
The state shared by data validators: property accessors returned from an
IDataValidationPlugin that wrap an inner
accessor and convert the values received from it into
BindingNotifications.
Fields§
§base: PropertyAccessorBase§inner: Rc<dyn IPropertyAccessor>Implementations§
Source§impl DataValidationBase
impl DataValidationBase
pub fn new(inner: Rc<dyn IPropertyAccessor>) -> Self
Sourcepub fn subscribe_core(&self, inner_value_changed: AccessorListener)
pub fn subscribe_core(&self, inner_value_changed: AccessorListener)
Begins listening to the inner accessor.
Sourcepub fn unsubscribe_core(&self)
pub fn unsubscribe_core(&self)
Stops listening to the inner accessor.
Sourcepub fn inner_value_changed(&self, value: Option<BoxedValue>)
pub fn inner_value_changed(&self, value: Option<BoxedValue>)
The default handling of a value from the inner accessor: wraps it in a notification unless it already is one, and publishes it.
Auto Trait Implementations§
impl !Freeze for DataValidationBase
impl !RefUnwindSafe for DataValidationBase
impl !Send for DataValidationBase
impl !Sync for DataValidationBase
impl !UnwindSafe for DataValidationBase
impl Unpin for DataValidationBase
impl UnsafeUnpin for DataValidationBase
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more