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
12
use efx_core::Node;
use proc_macro2::TokenStream;
use quote::{quote, ToTokens};

pub fn render_children_stmt<UI: ToTokens>(ui_ident: &UI, children: &[Node]) -> TokenStream {
    let mut out = TokenStream::new();
    for ch in children {
        let stmt = crate::render::render_node_stmt(&quote!(#ui_ident), ch);
        out.extend(quote! { #stmt });
    }
    out
}