Skip to main content

Crate mrz_parser

Crate mrz_parser 

Source
Expand description

MRZ parser module.

Declares the submodules for the MRZ parser and re-exports the common top-level types.

Re-exports§

pub use exceptions::MRZError;
pub use parser::MRZParser;
pub use result::MRZResult;
pub use sex::Sex;

Modules§

country_patterns
exceptions
MRZ parser errors. MRZError is an enum of the concrete error cases; each variant implements Display and std::error::Error.
parser
This module provides the MRZParser convenience API which chooses the correct format-specific parser (TD1 / TD2 / TD3) based on the polished input.
result
sex
string_extensions

Functions§

get_check_digit
Compute the MRZ check digit for input.