BindingExpression
struct · ferroui-base · v0.5.0
struct BindingExpression
A binding expression which accepts and produces (possibly boxed) untyped values: a source, a path of expression nodes read from it, and the conversion of the result to the target.
Members
ignore_own_target_changessource_typeconverterconverter_cultureconverter_parameterfallback_valuemodestring_formattarget_null_valuedelayupdate_source_triggererror_typeto_observable
ignore_own_target_changes
fn ignore_own_target_changes(self: &Self)
A TwoWay or OneWayToSource expression does not write back to its source a change of
its target that it makes itself, when it publishes a value: the rule of WinUI's
{x:Bind}, whose compiled update of a target does not run the two-way listener of that
target. A {Binding} writes such a change back (through ConvertBack with a converter),
as upstream does.
source_type
fn source_type(self: &Self) -> Option<ValueType>
The type of the value accepted by the binding source, if it can be written.
converter
fn converter(self: &Self) -> Option<&Rc<dyn IValueConverter>>
converter_culture
fn converter_culture(self: &Self) -> CultureInfo
The culture in which the converter is evaluated: the converter culture of the binding, or the current culture when it names none.
converter_parameter
fn converter_parameter(self: &Self) -> Option<&BoxedValue>
fallback_value
fn fallback_value(self: &Self) -> Option<BoxedValue>
The fallback value; the unset marker if there is none.
mode
fn mode(self: &Self) -> BindingMode
string_format
fn string_format(self: &Self) -> Option<&str>
target_null_value
fn target_null_value(self: &Self) -> Option<BoxedValue>
The target null value; the unset marker if there is none.
delay
fn delay(self: &Self) -> Duration
The amount of time to wait before updating the binding source after the value on the target changes.
update_source_trigger
fn update_source_trigger(self: &Self) -> UpdateSourceTrigger
error_type
fn error_type(self: &Self) -> BindingErrorType
The current error state of the binding expression.
to_observable
fn to_observable(self: &Rc<Self>, target: Option<&FerroObject>) -> Rc<ObservableSink>
Produces an observable subject over the expression, see
ObservableSink.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherUntypedBindingExpressionIDisposableBindingExpressionBaseDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.