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]
fn len(&self) -> usize
Gives the length of the alignment (backward + forward + 1).
fn is_empty(&self) -> bool
Returns true
if the backward and forward parts are zero.
Trait Implementations
impl Debug for Alignment
[src]
impl Copy for Alignment
[src]
impl Clone for Alignment
[src]
fn clone(&self) -> Alignment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Alignment
[src]
fn eq(&self, __arg_0: &Alignment) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Alignment) -> bool
This method tests for !=
.