pub enum MatchType {
NoMatch,
ShortNsnMatch,
NsnMatch,
ExactMatch,
}Expand description
Describes the degree of similarity between two phone numbers.
Variants§
NoMatch
No match. The two numbers are entirely different.
ShortNsnMatch
Short National Significant Number match.
One number is a shorter version of the other’s National Significant Number (NSN).
For example, 6502530000 is a short match for 16502530000.
NsnMatch
National Significant Number (NSN) match.
The numbers share the same NSN but may have different country codes or formatting.
For example, 0446681800 (national) and +41446681800 (international) are an NSN match.
ExactMatch
Exact match. The two numbers are identical in every aspect, including country code, NSN, and any specified extensions.
Trait Implementations§
impl Copy for MatchType
impl StructuralPartialEq for MatchType
Auto Trait Implementations§
impl Freeze for MatchType
impl RefUnwindSafe for MatchType
impl Send for MatchType
impl Sync for MatchType
impl Unpin for MatchType
impl UnwindSafe for MatchType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more