Skip to main content

emit_module

Function emit_module 

Source
pub fn emit_module(
    module: &Module,
    server_urls: Option<&ServerUrls>,
) -> Result<String>
Expand description

Render a module of IR items into formatted Rust source.

Each top-level item is parsed and pretty-printed on its own so that a blank line separates adjacent items — prettyplease otherwise emits them with no separation, which is hard to read when many pub items follow each other.