pub struct OpeningBookEntry {Show 13 fields
pub canonical_key: Vec<u8>,
pub qfen: String,
pub depth: i32,
pub evaluation: f64,
pub visit_count: i64,
pub win_count_p0: i64,
pub win_count_p1: i64,
pub draw_count: i64,
pub best_moves: Vec<(i32, i32)>,
pub is_terminal: TerminalStatus,
pub symmetry_count: i32,
pub solved: bool,
pub game_value: Option<i32>,
}Fields§
§canonical_key: Vec<u8>§qfen: String§depth: i32§evaluation: f64§visit_count: i64§win_count_p0: i64§win_count_p1: i64§draw_count: i64§best_moves: Vec<(i32, i32)>§is_terminal: TerminalStatus§symmetry_count: i32§solved: boolWhether this position carries an exactly-solved game value (see
OpeningBookDatabase::add_solved_position). false/default for
rows written before the solved/game_value columns existed.
game_value: Option<i32>Exact game value for the side to move (+1/-1), when solved.
Trait Implementations§
Source§impl Clone for OpeningBookEntry
impl Clone for OpeningBookEntry
Source§fn clone(&self) -> OpeningBookEntry
fn clone(&self) -> OpeningBookEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OpeningBookEntry
impl RefUnwindSafe for OpeningBookEntry
impl Send for OpeningBookEntry
impl Sync for OpeningBookEntry
impl Unpin for OpeningBookEntry
impl UnsafeUnpin for OpeningBookEntry
impl UnwindSafe for OpeningBookEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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