Skip to main content

Crate uzor_framework_macros

Crate uzor_framework_macros 

Source
Expand description

Procedural macros for uzor-framework.

Exports view! — JSX-mimicking DSL that lowers to lm::* builder calls against the existing L3 LayoutManager. No new state, no second manager; pure compile-time text-rewriting.

The macro expects two implicit identifiers in scope:

  • layout: &mut LayoutManager<P>
  • render: &mut dyn RenderContext

And one prop-supplied rect on the root node (<row rect={r}>), from which children rects are derived via uzor_framework::layout::row()/col() flex helpers.

Macros§

view
JSX-style view tree. Lowers to imperative uzor_framework::lm::* calls.