[−][src]Struct pleco::core::score::Score
Struct to define the value of a mid-game / end-game evaluation.
Methods
impl Score
[src]
pub const ZERO: Score
[src]
The Score of zero
pub fn make(mg: Value, eg: Value) -> Self
[src]
Creates a new Score
.
pub fn new(mg: Value, eg: Value) -> Self
[src]
Creates a new Score
.
pub fn mg(self) -> Value
[src]
Returns the mid-game score.
pub fn eg(self) -> Value
[src]
Returns the end-game score.
pub fn centipawns(self) -> (f64, f64)
[src]
Gives the value of the score in centi-pawns
Trait Implementations
impl Copy for Score
[src]
impl PartialEq<Score> for Score
[src]
impl Clone for Score
[src]
fn clone(&self) -> Score
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Score
[src]
impl Debug for Score
[src]
impl Add<Score> for Score
[src]
type Output = Score
The resulting type after applying the +
operator.
fn add(self, other: Score) -> Score
[src]
impl Sub<Score> for Score
[src]
type Output = Score
The resulting type after applying the -
operator.
fn sub(self, other: Score) -> Score
[src]
impl Mul<u8> for Score
[src]
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: u8) -> Score
[src]
impl Mul<u16> for Score
[src]
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> Score
[src]
impl Mul<i16> for Score
[src]
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Score
[src]
impl Mul<i32> for Score
[src]
type Output = Score
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Score
[src]
impl Neg for Score
[src]
impl AddAssign<Score> for Score
[src]
fn add_assign(&mut self, other: Score)
[src]
impl SubAssign<Score> for Score
[src]
fn sub_assign(&mut self, other: Score)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,