Enum cetkaik_yhuap_move_candidates::Perspective[][src]

pub enum Perspective {
    IaIsDownAndPointsUpward,
    IaIsUpAndPointsDownward,
}

Defines a perspective, with which you can transform between the absolute and the relative /どちらの視点で見ているかを表現する型。 視点を固定すると、相対座標表現と絶対座標表現を相互変換することができる。

Variants

IaIsDownAndPointsUpward

IA is the lowermost row; the player who had occupied the IA row in the beginning of the game has pieces that point upward (i.e. you) /IAは一番下の行であり、初期状態でIA行を占有していたプレイヤーは駒が上向き(=あなた)である。

IaIsUpAndPointsDownward

IA is the uppermost row; the player who had occupied the IA row in the beginning of the game has pieces that point downward (i.e. the opponent) /IAは一番上の行であり、初期状態でIA行を占有していたプレイヤーは駒が下向き(=相手)である。

Implementations

impl Perspective[src]

#[must_use]pub fn ia_is_down(self) -> bool[src]

Check if IA is the lowermost row /IAが一番下の行であるかどうかを判定する

Trait Implementations

impl Clone for Perspective[src]

impl Copy for Perspective[src]

impl Debug for Perspective[src]

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

impl Eq for Perspective[src]

impl Hash for Perspective[src]

impl PartialEq<Perspective> for Perspective[src]

impl Serialize for Perspective[src]

impl StructuralEq for Perspective[src]

impl StructuralPartialEq for Perspective[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.