FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompiledXamlLoader

    type alias · ferroui-markup-xaml · v0.5.0

    type CompiledXamlLoader = fn(Option<&std::rc::Rc<dyn IServiceProvider>>, &str) -> Result<Option<ferroui_base::BoxedValue>, crate::XamlLoadError>
    

    The loader of the compiled documents of one assembly (crate): returns the object built from the document with the absolute URI uri, Ok(None) if the assembly has no such document, and the load error when building the document failed.

    This is what the XAML compiler generates per crate; it stands in for the generated TryLoad(IServiceProvider, string) method the managed original finds by reflection (whose null is Ok(None) and whose exception is the error).

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.