Struct pleco::core::score::Score [−][src]
Struct to define the value of a mid-game / end-game evaluation.
Methods
impl Score
[src]
impl Score
pub const ZERO: Score
ZERO: Score = Score(0, 0)
The Score of zero
pub fn make(mg: Value, eg: Value) -> Self
[src]
pub fn make(mg: Value, eg: Value) -> Self
Creates a new Score
.
pub fn new(mg: Value, eg: Value) -> Self
[src]
pub fn new(mg: Value, eg: Value) -> Self
Creates a new Score
.
pub fn mg(self) -> Value
[src]
pub fn mg(self) -> Value
Returns the mid-game score.
pub fn eg(self) -> Value
[src]
pub fn eg(self) -> Value
Returns the end-game score.
pub fn centipawns(self) -> (f64, f64)
[src]
pub fn centipawns(self) -> (f64, f64)
Gives the value of the score in centi-pawns
Trait Implementations
impl Copy for Score
[src]
impl Copy for Score
impl Clone for Score
[src]
impl Clone for Score
fn clone(&self) -> Score
[src]
fn clone(&self) -> Score
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 PartialEq for Score
[src]
impl PartialEq for Score
fn eq(&self, other: &Score) -> bool
[src]
fn eq(&self, other: &Score) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Score) -> bool
[src]
fn ne(&self, other: &Score) -> bool
This method tests for !=
.
impl Debug for Score
[src]
impl Debug for Score
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 Display for Score
[src]
impl Display for Score
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 Add for Score
[src]
impl Add for Score
type Output = Score
The resulting type after applying the +
operator.
fn add(self, other: Score) -> Score
[src]
fn add(self, other: Score) -> Score
Performs the +
operation.
impl AddAssign for Score
[src]
impl AddAssign for Score
fn add_assign(&mut self, other: Score)
[src]
fn add_assign(&mut self, other: Score)
Performs the +=
operation.
impl Sub for Score
[src]
impl Sub for Score
type Output = Score
The resulting type after applying the -
operator.
fn sub(self, other: Score) -> Score
[src]
fn sub(self, other: Score) -> Score
Performs the -
operation.
impl SubAssign for Score
[src]
impl SubAssign for Score
fn sub_assign(&mut self, other: Score)
[src]
fn sub_assign(&mut self, other: Score)
Performs the -=
operation.
impl Neg for Score
[src]
impl Neg for Score
type Output = Score
The resulting type after applying the -
operator.
fn neg(self) -> Score
[src]
fn neg(self) -> Score
Performs the unary -
operation.
impl Mul<u8> for Score
[src]
impl Mul<u8> for Score
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: u8) -> Score
[src]
fn mul(self, rhs: u8) -> Score
Performs the *
operation.
impl Mul<u16> for Score
[src]
impl Mul<u16> for Score
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> Score
[src]
fn mul(self, rhs: u16) -> Score
Performs the *
operation.
impl Mul<i16> for Score
[src]
impl Mul<i16> for Score
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Score
[src]
fn mul(self, rhs: i16) -> Score
Performs the *
operation.
impl Mul<i32> for Score
[src]
impl Mul<i32> for Score