pub enum ContinentCode {
AS,
AF,
NA,
SA,
AN,
EU,
OC,
}Variants§
Implementations§
Source§impl ContinentCode
impl ContinentCode
pub const VARS: &'static [ContinentCode]
pub fn en_name(&self) -> &'static str
pub fn from_en_name(en_name: &str) -> Option<Self>
Trait Implementations§
Source§impl Clone for ContinentCode
impl Clone for ContinentCode
Source§fn clone(&self) -> ContinentCode
fn clone(&self) -> ContinentCode
Returns a duplicate 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 ContinentCode
impl Debug for ContinentCode
Source§impl Default for ContinentCode
impl Default for ContinentCode
Source§impl<'de> Deserialize<'de> for ContinentCode
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ContinentCode
Available on crate feature
serde only.Source§fn 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
Source§impl Display for ContinentCode
impl Display for ContinentCode
Source§impl FromStr for ContinentCode
impl FromStr for ContinentCode
Source§impl Hash for ContinentCode
Available on crate feature std only.
impl Hash for ContinentCode
Available on crate feature
std only.Source§impl<'a> PartialEq<&'a str> for ContinentCode
impl<'a> PartialEq<&'a str> for ContinentCode
Source§impl<'a> PartialEq<String> for ContinentCode
impl<'a> PartialEq<String> for ContinentCode
Source§impl<'a> PartialEq<str> for ContinentCode
impl<'a> PartialEq<str> for ContinentCode
Source§impl PartialEq for ContinentCode
impl PartialEq for ContinentCode
Source§impl Serialize for ContinentCode
Available on crate feature serde only.
impl Serialize for ContinentCode
Available on crate feature
serde only.impl Eq for ContinentCode
Auto Trait Implementations§
impl Freeze for ContinentCode
impl RefUnwindSafe for ContinentCode
impl Send for ContinentCode
impl Sync for ContinentCode
impl Unpin for ContinentCode
impl UnwindSafe for ContinentCode
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