pub struct GeoArea {
pub level: GeoLevel,
pub code: u16,
}Expand description
A resolved area, as Core and Relay identify it. Usually made by
GeoCatalog::parse_area.
Displays as Country 191; GeoCatalog::describe adds the name.
Fields§
§level: GeoLevelRegion, sub-region or country.
code: u16UN M49 / ISO 3166-1 numeric code at that level.
Trait Implementations§
impl Copy for GeoArea
impl Eq for GeoArea
impl StructuralPartialEq for GeoArea
Auto Trait Implementations§
impl Freeze for GeoArea
impl RefUnwindSafe for GeoArea
impl Send for GeoArea
impl Sync for GeoArea
impl Unpin for GeoArea
impl UnsafeUnpin for GeoArea
impl UnwindSafe for GeoArea
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.