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

Checks the format of a given input_file, subject to the given int_format.

In recursive mode, subregion files are also checked.

On success, returns true. On failure, returns false and prints a diff.

Examples

let succeeded = format_check_file("/path/to/symbols.yml", false, IntFormat::Hexadecimal)
    .expect("Format check failed");