pub struct Weighted<F, const N: usize> {
pub weights: Weights<N>,
pub counts: F,
}Expand description
An Evaluate made of the game’s counts and a kind of player’s
weights: it scores weights.score(&counts(start, end, side)).
Fields§
§weights: Weights<N>What the player cares about each feature.
counts: FThe game’s counts of its features, between the state a decision began in and where a copy got to, for a side.
Trait Implementations§
impl<F: Copy, const N: usize> Copy for Weighted<F, N>
impl<F: Eq, const N: usize> Eq for Weighted<F, N>
impl<F: PartialEq, const N: usize> StructuralPartialEq for Weighted<F, N>
Auto Trait Implementations§
impl<F, const N: usize> Freeze for Weighted<F, N>where
F: Freeze,
impl<F, const N: usize> RefUnwindSafe for Weighted<F, N>where
F: RefUnwindSafe,
impl<F, const N: usize> Send for Weighted<F, N>where
F: Send,
impl<F, const N: usize> Sync for Weighted<F, N>where
F: Sync,
impl<F, const N: usize> Unpin for Weighted<F, N>where
F: Unpin,
impl<F, const N: usize> UnsafeUnpin for Weighted<F, N>where
F: UnsafeUnpin,
impl<F, const N: usize> UnwindSafe for Weighted<F, N>where
F: UnwindSafe,
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