#[non_exhaustive]pub enum RegionCodes {
None,
Primary {
primary_region_code: u8,
},
PrimarySecondary {
primary_region_code: u8,
secondary_region_code: u8,
},
Full {
primary_region_code: u8,
secondary_region_code: u8,
tertiary_region_code: u16,
},
}Expand description
The region_depth field and its associated region codes (Table 156, §6.4.12).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
region_depth == 0.
Primary
region_depth == 1.
PrimarySecondary
region_depth == 2.
Fields
Full
region_depth == 3.
Trait Implementations§
Source§impl Clone for RegionCodes
impl Clone for RegionCodes
Source§fn clone(&self) -> RegionCodes
fn clone(&self) -> RegionCodes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionCodes
impl Debug for RegionCodes
impl Eq for RegionCodes
Source§impl PartialEq for RegionCodes
impl PartialEq for RegionCodes
Source§fn eq(&self, other: &RegionCodes) -> bool
fn eq(&self, other: &RegionCodes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegionCodes
impl Serialize for RegionCodes
impl StructuralPartialEq for RegionCodes
Auto Trait Implementations§
impl Freeze for RegionCodes
impl RefUnwindSafe for RegionCodes
impl Send for RegionCodes
impl Sync for RegionCodes
impl Unpin for RegionCodes
impl UnsafeUnpin for RegionCodes
impl UnwindSafe for RegionCodes
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