Enum usps::UnitDesignator
source · [−]pub enum UnitDesignator {
Show 25 variants
Blank,
Apartment,
Basement,
Building,
Department,
Floor,
Front,
Hanger,
Key,
Lobby,
Lot,
Lower,
Office,
Penthouse,
Pier,
Rear,
Room,
Side,
Slip,
Space,
Stop,
Suite,
Trailer,
Unit,
Upper,
}
Expand description
Variants
Blank
Apartment
Basement
Building
Department
Floor
Front
Hanger
Key
Lobby
Lot
Lower
Office
Penthouse
Pier
Rear
Room
Side
Slip
Space
Stop
Suite
Trailer
Unit
Upper
Implementations
sourceimpl UnitDesignator
impl UnitDesignator
sourcepub fn abbreviation(&self) -> &'static str
pub fn abbreviation(&self) -> &'static str
The USPS approved abbreviation for the designator, for example APT, or *DEPT.
sourcepub fn requires_pound_sign(&self) -> bool
pub fn requires_pound_sign(&self) -> bool
Whether the pound sign (#) should be used with this UnitDesignator.
sourcepub fn requires_unit_number(&self) -> bool
pub fn requires_unit_number(&self) -> bool
Whether a unit number, like the seven (7) in LOT 7, should accompany this abbreviation. Some designators, e.g. Front or Basement do not warrant this.
Trait Implementations
sourceimpl Clone for UnitDesignator
impl Clone for UnitDesignator
sourcefn clone(&self) -> UnitDesignator
fn clone(&self) -> UnitDesignator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<UnitDesignator> for UnitDesignator
impl PartialEq<UnitDesignator> for UnitDesignator
impl Copy for UnitDesignator
impl Eq for UnitDesignator
impl StructuralEq for UnitDesignator
impl StructuralPartialEq for UnitDesignator
Auto Trait Implementations
impl RefUnwindSafe for UnitDesignator
impl Send for UnitDesignator
impl Sync for UnitDesignator
impl Unpin for UnitDesignator
impl UnwindSafe for UnitDesignator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more