Enum country_code::iso3166_2::SubdivisionCode
source · [−]pub enum SubdivisionCode {
CN(CNSubdivisionCode),
US(USSubdivisionCode),
Other(CountryCode, Box<str>),
}Variants
CN(CNSubdivisionCode)
US(USSubdivisionCode)
Other(CountryCode, Box<str>)
Trait Implementations
sourceimpl Clone for SubdivisionCode
impl Clone for SubdivisionCode
sourcefn clone(&self) -> SubdivisionCode
fn clone(&self) -> SubdivisionCode
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 Debug for SubdivisionCode
impl Debug for SubdivisionCode
sourceimpl<'de> Deserialize<'de> for SubdivisionCode
impl<'de> Deserialize<'de> for SubdivisionCode
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for SubdivisionCode
impl Display for SubdivisionCode
sourceimpl FromStr for SubdivisionCode
impl FromStr for SubdivisionCode
sourceimpl Hash for SubdivisionCode
impl Hash for SubdivisionCode
sourceimpl<'a> PartialEq<&'a str> for SubdivisionCode
impl<'a> PartialEq<&'a str> for SubdivisionCode
sourceimpl<'a> PartialEq<Cow<'a, str>> for SubdivisionCode
impl<'a> PartialEq<Cow<'a, str>> for SubdivisionCode
sourceimpl<'a> PartialEq<String> for SubdivisionCode
impl<'a> PartialEq<String> for SubdivisionCode
sourceimpl PartialEq<SubdivisionCode> for SubdivisionCode
impl PartialEq<SubdivisionCode> for SubdivisionCode
sourcefn eq(&self, other: &SubdivisionCode) -> bool
fn eq(&self, other: &SubdivisionCode) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SubdivisionCode) -> bool
fn ne(&self, other: &SubdivisionCode) -> bool
This method tests for !=.
sourceimpl<'a> PartialEq<str> for SubdivisionCode
impl<'a> PartialEq<str> for SubdivisionCode
sourceimpl Serialize for SubdivisionCode
impl Serialize for SubdivisionCode
impl Eq for SubdivisionCode
impl StructuralEq for SubdivisionCode
impl StructuralPartialEq for SubdivisionCode
Auto Trait Implementations
impl RefUnwindSafe for SubdivisionCode
impl Send for SubdivisionCode
impl Sync for SubdivisionCode
impl Unpin for SubdivisionCode
impl UnwindSafe for SubdivisionCode
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more