Skip to main content

AppModel

Type Alias AppModel 

pub type AppModel = dyn Any;
Expand description

The app’s model, lent to a widget pass. The toolkit only passes it on to children; the layer that owns the model reads it (the document runtime through crate::doc::document). A host passes its model by reference and it coerces: widget.sync(&mut doc, &root).