pub enum Profession {
Nuak1,
Kauk2,
Gua2,
Kaun1,
Dau2,
Maun1,
Kua2,
Tuk2,
Uai1,
Io,
}
Expand description
Denotes the profession of a piece/駒の職業を表す。
Variants§
Nuak1
Vessel, 船, felkana
Kauk2
Pawn, 兵, elmer
Gua2
Rook, 弓, gustuer
Kaun1
Bishop, 車, vadyrd
Dau2
Tiger, 虎, stistyst
Maun1
Horse, 馬, dodor
Kua2
Clerk, 筆, kua
Tuk2
Shaman, 巫, terlsk
Uai1
General, 将, varxle
Io
King, 王, ales
Trait Implementations§
source§impl Clone for Profession
impl Clone for Profession
source§fn clone(&self) -> Profession
fn clone(&self) -> Profession
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 Profession
impl Debug for Profession
source§impl<'de> Deserialize<'de> for Profession
impl<'de> Deserialize<'de> for Profession
source§fn deserialize<D>(
deserializer: D
) -> Result<Profession, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Profession, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for Profession
impl FromStr for Profession
source§fn from_str(s: &str) -> Result<Profession, <Profession as FromStr>::Err>
fn from_str(s: &str) -> Result<Profession, <Profession as FromStr>::Err>
Parses Profession
.
/文字列をProfession
にする。簡体字やリパライン語名などにも対応。
Examples
use cetkaik_core::*;
assert_eq!("船".parse(), Ok(Profession::Nuak1));
assert_eq!("elmer".parse(), Ok(Profession::Kauk2));
assert_eq!("车".parse(), Ok(Profession::Kaun1));
assert_eq!("uai1".parse(), Ok(Profession::Uai1));
source§impl Hash for Profession
impl Hash for Profession
source§impl PartialEq<Profession> for Profession
impl PartialEq<Profession> for Profession
source§fn eq(&self, other: &Profession) -> bool
fn eq(&self, other: &Profession) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Profession
impl Serialize for Profession
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more