pub enum NumberLengthType {
IsPossible,
IsPossibleLocalOnly,
}Expand description
Represents the possible outcomes when checking if a phone number’s length is valid.
Variants§
IsPossible
The length is valid for a dialable number. The number’s length matches the expected length for a complete, dialable number in its region.
IsPossibleLocalOnly
The length is valid for a local-only number. The number’s length is too short for a full national number but matches a pattern for a number that can be dialed within a specific local area (e.g., without the area code).
Trait Implementations§
Source§impl Clone for NumberLengthType
impl Clone for NumberLengthType
Source§fn clone(&self) -> NumberLengthType
fn clone(&self) -> NumberLengthType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberLengthType
impl Debug for NumberLengthType
Source§impl Hash for NumberLengthType
impl Hash for NumberLengthType
Source§impl PartialEq for NumberLengthType
impl PartialEq for NumberLengthType
impl Copy for NumberLengthType
impl Eq for NumberLengthType
impl StructuralPartialEq for NumberLengthType
Auto Trait Implementations§
impl Freeze for NumberLengthType
impl RefUnwindSafe for NumberLengthType
impl Send for NumberLengthType
impl Sync for NumberLengthType
impl Unpin for NumberLengthType
impl UnwindSafe for NumberLengthType
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