FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BindingBase

    trait · ferroui-base · v0.5.0

    trait BindingBase
    

    The base of bindings: a description from which binding expressions are instantiated on targets.

    View source

    Members

    create_instance

    fn create_instance(self: &Self, target: &FerroObject, target_property: Option<&'static FerroProperty>, anchor: Option<&Ref<FerroObject>>) -> Rc<dyn BindingExpressionBase>
    

    Creates a binding expression from the binding.

    anchor provides, if target is not an element, an object from which to locate a data context or other elements.

    This is a low-level method which returns a binding expression that is not yet connected to a binding sink, and so is inactive.

    Source

    as_any

    fn as_any(self: &Self) -> Option<&dyn std::any::Any>
    

    The implementing value, for casting to its concrete type (as_any()?.downcast_ref::<T>()): the equivalent of is/as on the contract. None for an implementation that does not expose itself.

    Source

    Trait implementations

    Availability

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