Function resymgen::format_file

source ·
pub fn format_file<P: AsRef<Path>>(
    input_file: P,
    recursive: bool,
    int_format: IntFormat
) -> Result<(), Box<dyn Error>>
Expand description

Formats a given input_file using the given int_format.

In recursive mode, subregion files are also formatted.

Examples

format_file("/path/to/symbols.yml", false, IntFormat::Hexadecimal).expect("Format failed");