Struct pleco::core::piece_move::ScoringMove
[−]
[src]
#[repr(C)]pub struct ScoringMove { pub bit_move: BitMove, pub score: i16, }
A move that stores a score as well
Fields
bit_move: BitMove
score: i16
Methods
impl ScoringMove
[src]
pub fn new(m: BitMove) -> Self
[src]
pub fn new_score(m: BitMove, score: i16) -> Self
[src]
pub fn blank(score: i16) -> Self
[src]
pub fn bitmove(&self) -> BitMove
[src]
pub fn score(&self) -> i16
[src]
pub fn negate(self) -> Self
[src]
pub fn swap_move(self, mov: BitMove) -> Self
[src]
pub const fn null() -> Self
[src]
Trait Implementations
impl Eq for ScoringMove
[src]
impl Copy for ScoringMove
[src]
impl Clone for ScoringMove
[src]
fn clone(&self) -> ScoringMove
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ScoringMove
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for ScoringMove
[src]
impl Ord for ScoringMove
[src]
fn cmp(&self, other: &ScoringMove) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for ScoringMove
[src]
fn partial_cmp(&self, other: &ScoringMove) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more