add resources

This commit is contained in:
Vlasislav Kashin
2025-06-27 10:56:08 +03:00
commit 5f8bdd4b39
1780 changed files with 739214 additions and 0 deletions

9
src/interfaces/mod.rs Normal file
View File

@@ -0,0 +1,9 @@
/// Internal phonenumber matching API used to isolate the underlying
/// implementation of the matcher and allow different implementations to be
/// swapped in easily.
pub(crate) trait MatcherApi {
/// Returns whether the given national number (a string containing only decimal
/// digits) matches the national number pattern defined in the given
/// PhoneNumberDesc message.
fn match_national_number(number: &str, number_desc: &PhoneNumberDesc, allow_prefix_match: bool) -> bool;
}

2
src/lib.rs Normal file
View File

@@ -0,0 +1,2 @@
mod shortnumberinfo;
mod interfaces;

0
src/shortnumberinfo.rs Normal file
View File