xml_name!() { /* proc-macro */ }Expand description
XML 1.0 Name compliant string
§Example
ⓘ
use rxml::{NameStr, xml_name};
const FORBIDDEN: &'static NameStr = xml_name!("xmlns:xml");§Safety
The raw version of this macro, as exported by the rxml_proc crate (not by
the rxml crate!), expects a second argument which must be a path pointing
at the rxml crate.
If another path is passed, the behaviour of the generated is literally undefined, as the generated code then contains a transmute with the wrong type argument.