[−][src]Enum cetkaik_yhuap_move_candidates::Profession
Denotes the profession of a piece
Variants
Vessel, 船, felkana
Pawn, 兵, elmer
Rook, 弓, gustuer
Bishop, 車, vadyrd
Tiger, 虎, stistyst
Horse, 馬, dodor
Clerk, 筆, kua
Shaman, 巫, terlsk
General, 将, varxle
King, 王, ales
Trait Implementations
impl Clone for Profession
[src]
pub fn clone(&self) -> Profession
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Profession
[src]
impl Debug for Profession
[src]
impl<'de> Deserialize<'de> for Profession
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<Profession, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<Profession, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Eq for Profession
[src]
impl FromStr for Profession
[src]
type Err = ()
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Profession, <Profession as FromStr>::Err>
[src]
Parses 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));
impl Hash for Profession
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Profession> for Profession
[src]
pub fn eq(&self, other: &Profession) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Profession
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl StructuralEq for Profession
[src]
impl StructuralPartialEq for Profession
[src]
Auto Trait Implementations
impl RefUnwindSafe for Profession
[src]
impl Send for Profession
[src]
impl Sync for Profession
[src]
impl Unpin for Profession
[src]
impl UnwindSafe for Profession
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,