ViewHostResolution
struct · ferroui-reactiveui · v0.5.0
struct ViewHostResolution
The view lookup that the view hosts of the platforms share (ViewHostResolution).
Members
resolve_view_without_reflectionresolve_view_with_fallbackresolve_attached_viewno_view_found_warning
resolve_view_without_reflection
fn resolve_view_without_reflection(view_locator: &Rc<dyn IViewLocator>, view_model: Rc<dyn Any>, contract: Option<&str>) -> Option<Rc<dyn IViewFor>>
The view of view_model under contract, found by the run-time type of the view model
without building any type at run time (ResolveViewWithoutReflection).
resolve_view_with_fallback
fn resolve_view_with_fallback(resolve_view: &ResolveView, view_locator: Option<Rc<dyn IViewLocator>>, view_model: Rc<dyn Any>, contract: Option<&str>, contract_fallback_by_pass: bool) -> Option<Rc<dyn IViewFor>>
The view of view_model under contract, then under the default contract unless
contract_fallback_by_pass (ResolveViewWithFallback); view_locator is the host's
locator, or the current one when it is None.
resolve_attached_view
fn resolve_attached_view(resolve_view: &ResolveView, view_locator: Option<Rc<dyn IViewLocator>>, view_model: Option<Rc<dyn Any>>, contract: Option<&str>, contract_fallback_by_pass: bool) -> Option<Rc<dyn IViewFor>>
The view of view_model, with the view model set on it (ResolveAttachedView); None
when there is no view model or no view.
no_view_found_warning
fn no_view_found_warning(host_name: &str, view_model_type: &str, view_model: &dyn std::fmt::Debug, unsafe_host_name: &str) -> String
The warning a host logs when it finds no view for a view model (NoViewFoundWarning).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>Any
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.