Expand description
This module provides the MRZParser convenience API which chooses the
correct format-specific parser (TD1 / TD2 / TD3) based on the polished input.
Note: this module is exposed as mrz_parser::parser (with the
MRZParser type re-exported at the crate root). It expects sibling
modules to provide the following functions / types:
super::exceptions::MRZErrorsuper::result::MRZResultsuper::string_extensions::is_valid_mrz_inputsuper::td1_format_mrz_parser::{is_valid_input, parse}(and similarly for td2/td3)
Those format-specific parsers should implement is_valid_input(&[String]) -> bool
and parse(&[String]) -> Result<MRZResult, MRZError> to interoperate cleanly
with this module.
Structs§
- MRZParser
- Top-level MRZ parser.