pub enum PositiveHand {
Show 19 variants Io, Saup1, BapPokSaup1, Huep2Hia1, BapPokHuep2Hia1, Maun1Gua2Kauk2, BapPokMaun1Gua2Kauk2, Uaip2Hi1, BapPokUaip2Hi1, KaikDat2, BapPokKaikDat2, Mok1Mok1, BapPokMok1Mok1, Kua2Kauk2Mun1Aum2, BapPokKua2Kauk2Mun1Aum2, HuetKaikADat2, BapPokHuetKaikADat2, Mun1Mak1Mok1Hue, BapPokMun1Mak1Mok1Hue,
}

Variants§

§

Io

“王”

§

Saup1

“獣”

§

BapPokSaup1

“同色獣”

§

Huep2Hia1

“地心”

§

BapPokHuep2Hia1

“同色地心”

§

Maun1Gua2Kauk2

“馬弓兵”

§

BapPokMaun1Gua2Kauk2

“同色馬弓兵”

§

Uaip2Hi1

“助友”

§

BapPokUaip2Hi1

“同色助友”

§

KaikDat2

“戦集”

§

BapPokKaikDat2

“同色戦集”

§

Mok1Mok1

“行行”

§

BapPokMok1Mok1

“同色行行”

§

Kua2Kauk2Mun1Aum2

“筆兵無傾”

§

BapPokKua2Kauk2Mun1Aum2

“同色筆兵無傾”

§

HuetKaikADat2

“闇戦之集”

§

BapPokHuetKaikADat2

“同色闇戦之集”

§

Mun1Mak1Mok1Hue

“無抗行処”

§

BapPokMun1Mak1Mok1Hue

“同色無抗行処”

Implementations§

Examples found in repository?
src/lib.rs (line 463)
459
460
461
462
463
464
465
466
467
468
469
470
pub fn calculate_hands_and_score_from_pieces(ps: &[ColorAndProf]) -> Answer {
    match calculate_hands_from_pieces(ps) {
        Err(TooMany(too_many_list)) => Err(TooMany(too_many_list)),
        Ok(hands) => Ok(ScoreAndHands {
            score: hands.iter().map(|h| h.hand_to_score()).sum(),
            hands: hands
                .iter()
                .map(alloc::string::ToString::to_string)
                .collect(),
        }),
    }
}

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
Formats the value using the given formatter. Read more
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.

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
Checks if this value is equivalent to the given key. 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
Converts the given value to a String. 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.