FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    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

    source_type

    fn source_type(self: &Self) -> Option<ValueType>
    

    The type of the value accepted by the binding source, if it can be written.

    Source

    converter

    fn converter(self: &Self) -> Option<&Rc<dyn IValueConverter>>
    

    Source

    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.

    Source

    converter_parameter

    fn converter_parameter(self: &Self) -> Option<&BoxedValue>
    

    Source

    fallback_value

    fn fallback_value(self: &Self) -> Option<BoxedValue>
    

    The fallback value; the unset marker if there is none.

    Source

    mode

    fn mode(self: &Self) -> BindingMode
    

    Source

    string_format

    fn string_format(self: &Self) -> Option<&str>
    

    Source

    target_null_value

    fn target_null_value(self: &Self) -> Option<BoxedValue>
    

    The target null value; the unset marker if there is none.

    Source

    delay

    fn delay(self: &Self) -> Duration
    

    The amount of time to wait before updating the binding source after the value on the target changes.

    Source

    update_source_trigger

    fn update_source_trigger(self: &Self) -> UpdateSourceTrigger
    

    Source

    error_type

    fn error_type(self: &Self) -> BindingErrorType
    

    The current error state of the binding expression.

    Source

    to_observable

    fn to_observable(self: &Rc<Self>, target: Option<&FerroObject>) -> Rc<ObservableSink>
    

    Produces an observable subject over the expression, see ObservableSink.

    Source

    Trait implementations

    Availability

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