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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Parses Profession. /文字列をProfessionにする。簡体字やリパライン語名などにも対応。

Examples
use cetkaik_fundamental::*;

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));
The associated error which can be returned from parsing.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.