FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ViewHostResolution

    struct · ferroui-reactiveui · v0.5.0

    struct ViewHostResolution
    

    The view lookup that the view hosts of the platforms share (ViewHostResolution).

    View source

    Members

    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).

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<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.