efx 0.6.1

Rust XML templating engine for building egui UIs with procedural macros
Documentation
1
2
3
4
5
6
7
8
9
10
11
use efx::efx;

#[derive(Default)]
struct Ui;
impl Ui { fn label<S: Into<String>>(&mut self, _s: S) {} }

fn main() {
    let mut ui = Ui::default();
    // unknown attribute
    efx!(ui, r#"<Label foo="bar">X</Label>"#);
}