Skip to main content

format_euv_macros_in_source

Function format_euv_macros_in_source 

Source
pub fn format_euv_macros_in_source(source: &str) -> (String, usize)
Expand description

Formats all euv procedural macro bodies (view!, style!, tokens!, etc.) in a single Rust source string deterministically and idempotently.

§Arguments

  • &str - Raw Rust source code.

§Returns

  • (String, usize) - Tuple of (formatted_source, formatted_macro_count).