#[repr(C)]pub struct ScoringMove {
pub bit_move: BitMove,
pub score: i16,
}Expand description
Structure containing both a score (represented as a i16) and a BitMove.
This is useful for tracking a list of moves alongside each of their scores.
Fields§
§bit_move: BitMove§score: i16Implementations§
Trait Implementations§
Source§impl Clone for ScoringMove
impl Clone for ScoringMove
Source§fn clone(&self) -> ScoringMove
fn clone(&self) -> ScoringMove
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 ScoringMove
impl Debug for ScoringMove
Source§impl Default for ScoringMove
impl Default for ScoringMove
Source§impl Ord for ScoringMove
impl Ord for ScoringMove
Source§fn cmp(&self, other: &ScoringMove) -> Ordering
fn cmp(&self, other: &ScoringMove) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScoringMove
impl PartialEq for ScoringMove
Source§impl PartialOrd for ScoringMove
impl PartialOrd for ScoringMove
impl Copy for ScoringMove
impl Eq for ScoringMove
Auto Trait Implementations§
impl Freeze for ScoringMove
impl RefUnwindSafe for ScoringMove
impl Send for ScoringMove
impl Sync for ScoringMove
impl Unpin for ScoringMove
impl UnwindSafe for ScoringMove
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more