Enum shakmaty_syzygy::Wdl[][src]

#[repr(i8)]
pub enum Wdl { Loss, BlessedLoss, Draw, CursedWin, Win, }

5-valued evaluation of a position in the context of the 50-move drawing rule.

Variants

Unconditional loss for the side to move.

Loss that can be saved by the 50-move rule.

Unconditional draw.

Win that can be frustrated by the 50-move rule.

Unconditional win.

Methods

impl Wdl
[src]

Converts outcome to a Wdl from the given point of view.

Converts dtz to a Wdl.

Typically the result would be ambiguous for absolute DTZ values 100. This conversion assumes that such values were given immediately after a capture or pawn move, in which case the outcome is an unconditional win or loss.

Trait Implementations

impl Debug for Wdl
[src]

Formats the value using the given formatter. Read more

impl Copy for Wdl
[src]

impl Clone for Wdl
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Wdl
[src]

impl PartialEq for Wdl
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Wdl
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Wdl
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for Wdl
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Neg for Wdl
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl From<Wdl> for i8
[src]

Performs the conversion.

impl From<Wdl> for i16
[src]

Performs the conversion.

impl From<Wdl> for i32
[src]

Performs the conversion.

impl From<Wdl> for i64
[src]

Performs the conversion.

impl From<Wdl> for i128
[src]

Performs the conversion.

impl From<Wdl> for isize
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Wdl

impl Sync for Wdl