IViewForOf
trait · ferroui-reactiveui · v0.5.0
trait IViewForOf<VM: 'static>: IViewFor
A view that displays a view model of the type VM (IViewFor<T>).
Its accessors have the names of those of IViewFor, as upstream's new T? ViewModel hides
the untyped one: where both traits are in scope, a call on a generic view names the trait
(IViewForOf::<VM>::view_model(&*view)). The macro view_for! also gives
the view inherent accessors, which a call on the concrete type finds first.
Members
view_model
fn view_model(self: &Self) -> Option<Rc<VM>>
The view model displayed by the view (the getter of ViewModel).
set_view_model
fn set_view_model(self: &Self, view_model: Option<Rc<VM>>)
Sets the view model displayed by the view (the setter of ViewModel).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.