FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_static_view_locator_macros

    module · ferroui-static-view-locator-macros · v0.5.0

    module ferroui_static_view_locator_macros
    

    ferroui-static-view-locator-macros

    The attributes of ferroui-static-view-locator: static_view_locator ([StaticViewLocator]) and static_view_mapping ([StaticViewMapping]). Use them through ferroui_static_view_locator, which re-exports them.

    The attributes do not generate the locator: a proc macro sees one item and cannot find the view models and views of the crate. The build script of the crate does (ferroui-static-view-locator-build), and writes one file per locator below OUT_DIR; static_view_locator checks its options, writes the struct, and includes that file, whose impl blocks extend the struct (the partial class of the reference).

    View source

    Contents

    Availability

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