pub enum PhoneNumber<'a> {
US {
area_code: u16,
prefix: u16,
line_number: u16,
icon: &'a str,
},
}Expand description
A phone number. This is an enum for globalization.
Variants§
US
A phone number in the US.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PhoneNumber<'a>
impl<'a> RefUnwindSafe for PhoneNumber<'a>
impl<'a> Send for PhoneNumber<'a>
impl<'a> Sync for PhoneNumber<'a>
impl<'a> Unpin for PhoneNumber<'a>
impl<'a> UnwindSafe for PhoneNumber<'a>
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