Skip to main content

Crate rlibphonenumber

Crate rlibphonenumber 

Source

Modules§

phonemetadata
Generated file from phonemetadata.proto

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.
InternalError
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.
PhoneNumberFormat
Defines the various standardized formats for representing phone numbers.
PhoneNumberType
Categorizes phone numbers based on their primary use.
Region
ValidationError
Details why a phone number is considered invalid.

Statics§

PHONE_NUMBER_UTIL
Singleton instance of phone number util for general use

Type Aliases§

InternalRegexError