Enum backgammon_logic::moves::Submove[][src]

pub enum Submove {
    Move {
        from: Position,
        to: Position,
    },
    Enter {
        to: Position,
    },
    BearOff {
        from: Position,
    },
}

Variants

Fields of Move

Fields of Enter

Fields of BearOff

Trait Implementations

impl Debug for Submove
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Submove
[src]

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

This method tests for !=.

impl FromStr for Submove
[src]

Constructs a new submove from the supplied string.

TODO: Implement proper error handling with custom Error types.

Caveats

Currently, this implementation only supports moves with a single /. That is to say, moves in the format 1/2*/3 will fail to be parsed.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Submove

impl Sync for Submove