pub fn emit(graph: &TypeGraph) -> StringExpand description
Emit a complete Rust source file from the given TypeGraph.
The returned string is formatted with prettyplease and is guaranteed to
be parseable by syn::parse_file.
xs:choice types (IR crate::ir::types::EnumDef) that appear as struct
field values are automatically wrapped in
crate::common::ChoiceWrapper<T> so that quick-xml + serde can
round-trip them correctly.
ยงPanics
Panics if the generated token stream cannot be parsed by syn. This
indicates a bug in the emitter (not in user input).