[][src]Struct pleco::core::score::Score

pub struct Score(pub Value, pub Value);

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_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.

impl Sub<Score> for Score[src]

type Output = Score

The resulting type after applying the - operator.

impl Mul<u8> for Score[src]

type Output = Score

The resulting type after applying the * operator.

impl Mul<u16> for Score[src]

type Output = Score

The resulting type after applying the * operator.

impl Mul<i16> for Score[src]

type Output = Score

The resulting type after applying the * operator.

impl Mul<i32> for Score[src]

type Output = Score

The resulting type after applying the * operator.

impl Neg for Score[src]

type Output = Score

The resulting type after applying the - operator.

impl AddAssign<Score> for Score[src]

impl SubAssign<Score> for Score[src]

Auto Trait Implementations

impl Send for Score

impl Sync for Score

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.