Trait sixtyfps::ModelTracker[]

pub trait ModelTracker {
    fn attach_peer(&self, peer: ModelPeer);
fn track_row_count_changes(&self); }
Expand description

This trait defines the interface that users of a model can use to track changes to a model. It is supplied via Model::model_tracker and implementation usually return a reference to its field of ModelNotify.

Required methods

Attach one peer. The peer will be notified when the model changes

Register the model as a dependency to the current binding being evaluated, so that it will be notified when the model changes its size.

Implementations on Foreign Types

Implementors