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§
Sourcefn priority(&self) -> BindingPriority
fn priority(&self) -> BindingPriority
The priority of the binding expression.
Sourcefn target_property(&self) -> Option<&'static FerroProperty>
fn target_property(&self) -> Option<&'static FerroProperty>
The property that the binding expression is targeting.
Sourcefn default_priority(&self) -> BindingPriority
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.
Sourcefn is_data_validation_enabled(&self) -> bool
fn is_data_validation_enabled(&self) -> bool
Whether data validation is enabled for the binding expression.
fn as_any(&self) -> &dyn Any
Provided Methods§
Sourcefn update_source(&self)
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.
Sourcefn update_target(&self)
fn update_target(&self)
Forces a data transfer from the binding source to the binding target.
Trait Implementations§
Source§impl MarkupTyped for dyn BindingExpressionBase
impl MarkupTyped for dyn BindingExpressionBase
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
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.
impl PartialEq for dyn BindingExpressionBase
Handles compare by identity (reference equality), so that the expression a binding returns can be held in untyped values.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".