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