pub struct ScoreStandardized(/* private fields */);Expand description
This struct represents a “standardized” score (read below).
Engines (should) return a Score dependent on whose turn it is to move.
ScoreStandardized is a score independent of whose turn it is to move.
So, x means that white has an advantage of x, -x means that black has an advantage of x.
Get this by calling Score::standardized.
Note that you need to specify whose turn it is to move.
⚠️ While the UCI protocol does say engines should score from their point of view, you should verify this is the case with the engine you’re using.
Implementations§
Trait Implementations§
Source§impl Clone for ScoreStandardized
impl Clone for ScoreStandardized
Source§fn clone(&self) -> ScoreStandardized
fn clone(&self) -> ScoreStandardized
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScoreStandardized
impl Debug for ScoreStandardized
Source§impl<'de> Deserialize<'de> for ScoreStandardized
impl<'de> Deserialize<'de> for ScoreStandardized
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ScoreStandardized
impl Hash for ScoreStandardized
Source§impl PartialEq for ScoreStandardized
impl PartialEq for ScoreStandardized
Source§impl Serialize for ScoreStandardized
impl Serialize for ScoreStandardized
impl Copy for ScoreStandardized
impl Eq for ScoreStandardized
impl StructuralPartialEq for ScoreStandardized
Auto Trait Implementations§
impl Freeze for ScoreStandardized
impl RefUnwindSafe for ScoreStandardized
impl Send for ScoreStandardized
impl Sync for ScoreStandardized
impl Unpin for ScoreStandardized
impl UnwindSafe for ScoreStandardized
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more