Struct rust_iso3166::iso3166_3::CountryCode3
source · pub struct CountryCode3 {
pub code: &'static str,
pub name: &'static str,
pub former: CountryCode,
pub new_countries: &'static [CountryCode],
pub validity: &'static [i32],
pub desc: &'static str,
}
Fields§
§code: &'static str
ISO 3166-3 code
name: &'static str
Former country name
former: CountryCode
§new_countries: &'static [CountryCode]
§validity: &'static [i32]
Period of validity
desc: &'static str
Decription
Trait Implementations§
source§impl Clone for CountryCode3
impl Clone for CountryCode3
source§fn clone(&self) -> CountryCode3
fn clone(&self) -> CountryCode3
Returns a copy 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 CountryCode3
impl Debug for CountryCode3
source§impl Hash for CountryCode3
impl Hash for CountryCode3
source§impl Ord for CountryCode3
impl Ord for CountryCode3
source§fn cmp(&self, other: &CountryCode3) -> Ordering
fn cmp(&self, other: &CountryCode3) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CountryCode3
impl PartialEq for CountryCode3
source§fn eq(&self, other: &CountryCode3) -> bool
fn eq(&self, other: &CountryCode3) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CountryCode3
impl PartialOrd for CountryCode3
source§fn partial_cmp(&self, other: &CountryCode3) -> Option<Ordering>
fn partial_cmp(&self, other: &CountryCode3) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CountryCode3
impl Eq for CountryCode3
impl StructuralPartialEq for CountryCode3
Auto Trait Implementations§
impl Freeze for CountryCode3
impl RefUnwindSafe for CountryCode3
impl Send for CountryCode3
impl Sync for CountryCode3
impl Unpin for CountryCode3
impl UnwindSafe for CountryCode3
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