Macro nxml

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

Creates an Element from an XML-like syntax.

ยงExample

nxml! {
    <Entity>
        <SomeComponent name="comp" value={outside_var} {shortcut_name} />
        <BareTextIsMeh>
            bare words "(idents only)" or
            "string literals or"
            {"exprs"}
            "are format!'ed into a single string"
            "(when an expr occurs the zerocopy breaks and we have a Cow::Owned)"
        </BareTextIsMeh>
    </Entity>
};