Skip to main content

BindingExpressionBase

Trait BindingExpressionBase 

Source
pub trait BindingExpressionBase:
    IDisposable
    + IValueEntry
    + Any {
    // Required methods
    fn priority(&self) -> BindingPriority;
    fn target_property(&self) -> Option<&'static FerroProperty>;
    fn default_priority(&self) -> BindingPriority;
    fn is_data_validation_enabled(&self) -> bool;
    fn as_any(&self) -> &dyn Any;

    // Provided methods
    fn update_source(&self) { ... }
    fn update_target(&self) { ... }
}
Expand description

The base of binding expressions: an instantiated binding on a target object. It is also the value entry through which the target’s value store reads the binding’s value.

Required Methods§

Source

fn priority(&self) -> BindingPriority

The priority of the binding expression.

Source

fn target_property(&self) -> Option<&'static FerroProperty>

The property that the binding expression is targeting.

Source

fn default_priority(&self) -> BindingPriority

The preferred priority of the binding expression; the priority passed to attach may differ if the binding targets a direct property, in which case it is elevated to local value priority.

Source

fn is_data_validation_enabled(&self) -> bool

Whether data validation is enabled for the binding expression.

Source

fn as_any(&self) -> &dyn Any

Provided Methods§

Source

fn update_source(&self)

Sends the current binding target value to the binding source property in two-way or one-way-to-source bindings. Does nothing for other modes. If the update source trigger of the binding is explicit, this must be called for changes to propagate back to the source.

Source

fn update_target(&self)

Forces a data transfer from the binding source to the binding target.

Trait Implementations§

Source§

impl MarkupTyped for dyn BindingExpressionBase

Source§

const MARKUP: &'static MarkupType

The markup metadata of the type.
Source§

impl PartialEq for dyn BindingExpressionBase

Handles compare by identity (reference equality), so that the expression a binding returns can be held in untyped values.

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§