1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Validators for Iranian identifiers and document numbers.
//!
//! Each sub-module provides one validator family. All validators accept
//! input with **either Persian or Latin digits** and tolerate common
//! separators (spaces, dashes) — they extract digits internally before
//! checking format and checksums.
//!
//! | Module | What it validates |
//! |--------|-------------------|
//! | [`national_id`] | کد ملی — Iranian national ID (10 digits + checksum) |
//! | [`sheba`] | شبا — Iranian IBAN (`IR` + 24 digits + mod-97 checksum) |
//! | [`bank_card`] | کارت بانکی — 16-digit card number (Luhn checksum) |
//! | [`phone`] | شماره موبایل — 11-digit Iranian mobile number + operator detection |
//! | [`postal_code`] | کد پستی — 10-digit Iranian postal code |
//!
//! [`sheba`] and [`bank_card`] also expose `bank()` / `bank_persian()`
//! helpers that look up the issuing bank from the number.
pub use Plate;
pub use Province;
pub use Operator;
// ── shared digit-extraction helpers ───────────────────────────────────────────
pub
pub