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]

[src]

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

[src]

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]

[src]

Formats the value using the given formatter. Read more

impl Copy for Wdl
[src]

impl Clone for Wdl
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Wdl
[src]

impl PartialEq for Wdl
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Ord for Wdl
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Wdl
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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]

[src]

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

1.3.0
[src]

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

impl Neg for Wdl
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl From<Wdl> for i8
[src]

[src]

Performs the conversion.

impl From<Wdl> for i16
[src]

[src]

Performs the conversion.

impl From<Wdl> for i32
[src]

[src]

Performs the conversion.

impl From<Wdl> for i64
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Wdl

impl Sync for Wdl