FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DataValidationBase

    struct · ferroui-base · v0.5.0

    struct DataValidationBase
    

    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.

    View source

    Members

    base

    base: super::PropertyAccessorBase
    

    Source

    inner

    inner: std::rc::Rc<dyn IPropertyAccessor>
    

    Source

    new

    fn new(inner: Rc<dyn IPropertyAccessor>) -> Self
    

    Source

    subscribe_core

    fn subscribe_core(self: &Self, inner_value_changed: AccessorListener)
    

    Begins listening to the inner accessor.

    Source

    unsubscribe_core

    fn unsubscribe_core(self: &Self)
    

    Stops listening to the inner accessor.

    Source

    inner_value_changed

    fn inner_value_changed(self: &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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.