FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AccessorBinding

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct AccessorBinding<M: TreeModel, V: Clone + 'static>
    

    A binding of the value an Accessor reads from a model: the reference's TypedBindingExpression<TModel, TValue> instantiated for a cell (InstanceForCell).

    View source

    Members

    new

    fn new(accessor: Accessor<M, V>, root: Option<Rc<M>>) -> Rc<Self>
    

    A binding of accessor on root.

    Source

    with_observer

    fn with_observer(accessor: Accessor<M, V>, observer: Option<Rc<PropertyPathObserver<M>>>, root: Option<Rc<M>>) -> Rc<Self>
    

    A binding of accessor on root that follows the path with observer, compiled once for a column and shared by its cells.

    Source

    root

    fn root(self: &Self) -> Option<Rc<M>>
    

    The model the binding reads.

    Source

    accessor

    fn accessor(self: &Self) -> &Accessor<M, V>
    

    The accessor of the binding.

    Source

    value

    fn value(self: &Self) -> Option<V>
    

    The current value, if the binding has a root (GetResult).

    Source

    Trait implementations

    Availability

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