Skip to main content

ui_expand

Macro ui_expand 

Source
ui_expand!() { /* proc-macro */ }
Expand description

Like ui!, but instead of building the element tree, expand to a &'static str of the pretty-printed GPUI builder code the same input generates — cargo expand scoped to one invocation, with no nightly or extra tooling.

ⓘ
println!("{}", ui_expand! { row(px_8 bg_1c1a17) { text("hi") } });