Skip to main content

apply_fixes_rust

Function apply_fixes_rust 

Source
pub fn apply_fixes_rust(source: &str, layouts: &[&StructLayout]) -> String
Expand description

Apply Rust struct reorderings in-place, returning the modified source. Preserves pub, pub(crate), #[serde(...)], /// doc-comments, and other attributes verbatim; falls back to IR-based generation when source cannot be parsed.