pub fn validate_full<P: AsRef<Path>>(
path: P,
permissive: bool,
) -> Result<ValidationReport, Error>Expand description
Validation report types and comprehensive file checker. Run comprehensive validation on an MRC file.
Opens the file, checks header structure, data statistics, and data integrity. In permissive mode, non-critical header issues are reported as warnings rather than hard errors.
Prefer validate_reader when you already have an open Reader — it
avoids the redundant file I/O.
§Errors
Returns Err only when the file cannot be opened or read at all.
§Example
use mrc::validate_full;
let report = validate_full("protein.mrc", false)?;
if report.is_valid() {
println!("File is valid");
}