[][src]Struct cetkaik_full_state_transition::Scores

pub struct Scores { /* fields omitted */ }

Describes the scores that the two players have. Players each begin with 20 points, and loses when all the points are lost. /両プレイヤーが持つ得点を表す型。双方20点スタートであり、点が0点になると敗北。

Implementations

impl Scores[src]

#[must_use]pub fn new() -> Scores[src]

#[must_use]pub fn ia(self) -> i32[src]

#[must_use]pub fn a(self) -> i32[src]

pub fn edit(
    self,
    raw_score: i32,
    whose_turn: Side,
    rate: Rate
) -> Result<Self, Victor>
[src]

#[must_use]pub fn which_side_is_winning(self) -> Victor[src]

Trait Implementations

impl Clone for Scores[src]

impl Copy for Scores[src]

impl Debug for Scores[src]

impl Default for Scores[src]

impl<'de> Deserialize<'de> for Scores[src]

impl Eq for Scores[src]

impl Hash for Scores[src]

impl PartialEq<Scores> for Scores[src]

impl Serialize for Scores[src]

impl StructuralEq for Scores[src]

impl StructuralPartialEq for Scores[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,