Modules§
- phonemetadata
- Generated file from
phonemetadata.proto - region_
code
Structs§
- Invalid
Metadata ForValid Region Error - An internal error indicating that metadata for a supposedly valid region was
null. - Invalid
Number Error - A specific error indicating that the provided input is not a number.
- Invalid
Regex Error - Phone
Number - Phone
Number Type Iter - An iterator over the variants of PhoneNumberType
- Phone
Number Util - The main struct for all phone number-related operations.
Enums§
- Country
Code Source - Extract
Number Error - Represents errors during the low-level extraction of a number string.
- GetExample
Number Error - Represents possible failures when requesting an example phone number.
- GetExample
Number Error Internal - Internal error type used when fetching an example number.
- Internal
Logic Error - Represents critical internal errors that indicate a bug within the library itself. These errors are not expected to be caught or handled by the user, as they signal a problem with the library’s metadata or logic.
- Invalid
Number Error Internal - Internal error type used during number validation.
- Match
Type - Describes the degree of similarity between two phone numbers.
- NotA
Number Error - Provides more specific details for a
ParseError::NotANumberfailure. - Number
Length Type - Represents the possible outcomes when checking if a phone number’s length is valid.
- Parse
Error - Represents the possible errors that can occur when parsing a phone number string. This is a public-facing error enum.
- Parse
Error Internal - An internal error type used during the parsing process. It distinguishes between a general parsing failure and a regex-specific issue.
- Phone
Number Format - Defines the various standardized formats for representing phone numbers.
- Phone
Number Type - Categorizes phone numbers based on their primary use.
- Validation
Error - Details why a phone number is considered invalid.
Statics§
- PHONE_
NUMBER_ UTIL - Singleton instance of phone number util for general use