Macro slint
slint!() { /* proc-macro */ }Expand description
This macro allows you to use the Slint design markup language inline in Rust code. Within the braces of the macro you can use place Slint code and the named exported components will be available for instantiation.
For the documentation about the syntax of the language, see The Slint Language Documentation
When Rust 1.88 or later is used, the paths for loading images with @image-url and importing .slint files
are relative to the .rs file that contains the macro.
For compatibility with older rust version, the files are also searched in the manifest directory that contains Cargo.toml.
§Limitations
Within .slint files, you can interpolate string literals using \{...} syntax.
This is not possible in this macro as this wouldn’t parse as a Rust string.