Struct gomoku_core::Alignment [] [src]

pub struct Alignment(pub BoundState, pub usize, pub usize, pub BoundState);

Represent the backward bound, the number of stones of the same color before pos, the number of stones of the same color after pos and the forward bound.

Methods

impl Alignment
[src]

Gives the length of the alignment (backward + forward + 1).

Returns true if the backward and forward parts are zero.

Trait Implementations

impl Debug for Alignment
[src]

Formats the value using the given formatter.

impl Copy for Alignment
[src]

impl Clone for Alignment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Alignment
[src]

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

This method tests for !=.

impl Eq for Alignment
[src]

impl Default for Alignment
[src]

Returns the "default value" for a type. Read more