FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICellBinding

    trait · ferroui-controls-treedatagrid · v0.5.0

    trait ICellBinding<T: 'static>
    

    The binding of a cell to its value (ISubject<BindingValue<T>>): an observable of the value that the cell writes back to.

    View source

    Members

    subscribe

    fn subscribe(self: &Self, observer: Rc<dyn Fn(T) -> ()>) -> u64
    

    Subscribes observer: it receives the current value now, if there is one, and every later value (Subscribe). Returns the token of unsubscribe. An observer receives a value of its own, which it keeps without copying it.

    Source

    unsubscribe

    fn unsubscribe(self: &Self, token: u64)
    

    Ends a subscription (the IDisposable that Subscribe returns).

    Source

    on_next

    fn on_next(self: &Self, value: T)
    

    Writes a value to the source (OnNext).

    Source

    can_write

    fn can_write(self: &Self) -> bool
    

    Whether the binding writes its values back (Write is not null).

    Source

    as_retargetable

    fn as_retargetable(self: &Self) -> Option<&dyn IRetargetableCellBinding>
    

    The binding as one whose root can be replaced (is IRetargetableTypedBindingExpression).

    Source

    Trait implementations

    Availability

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