GeneratedViewDispatch
type alias · ferroui-reactiveui · v0.5.0
type GeneratedViewDispatch = std::rc::Rc<dyn Fn(&dyn Any, &str) -> Option<std::rc::Rc<dyn IViewFor>>>
A lookup of the views of view models, registered with
DefaultViewLocator::set_generated_view_dispatch: it takes the view model and the contract
(empty for the default) and gives the view, or None for a view model it has no view for.
Upstream's source generator writes one per assembly that contains views
(Func<object, string, IViewFor?>); here ViewRegistrations builds
one from registered views, or an application writes its own.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.