Crate rlibphonenumber

Crate rlibphonenumber 

Source

Modules§

phonemetadata
Generated file from phonemetadata.proto
region_code

Structs§

InvalidMetadataForValidRegionError
An internal error indicating that metadata for a supposedly valid region was null.
InvalidNumberError
A specific error indicating that the provided input is not a number.
InvalidRegexError
PhoneNumber
PhoneNumberTypeIter
An iterator over the variants of PhoneNumberType
PhoneNumberUtil
The main struct for all phone number-related operations.

Enums§

CountryCodeSource
ExtractNumberError
Represents errors during the low-level extraction of a number string.
GetExampleNumberError
Represents possible failures when requesting an example phone number.
GetExampleNumberErrorInternal
Internal error type used when fetching an example number.
InternalLogicError
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.
InvalidNumberErrorInternal
Internal error type used during number validation.
MatchType
Describes the degree of similarity between two phone numbers.
NotANumberError
Provides more specific details for a ParseError::NotANumber failure.
NumberLengthType
Represents the possible outcomes when checking if a phone number’s length is valid.
ParseError
Represents the possible errors that can occur when parsing a phone number string. This is a public-facing error enum.
ParseErrorInternal
An internal error type used during the parsing process. It distinguishes between a general parsing failure and a regex-specific issue.
PhoneNumberFormat
Defines the various standardized formats for representing phone numbers.
PhoneNumberType
Categorizes phone numbers based on their primary use.
ValidationError
Details why a phone number is considered invalid.

Statics§

PHONE_NUMBER_UTIL
Singleton instance of phone number util for general use