pub struct MoveObservation {Show 15 fields
pub engine: &'static str,
pub config_label: String,
pub position_id: String,
pub mv: String,
pub wall_time_s: f64,
pub cpu_time_s: f64,
pub root_legal_moves: usize,
pub exact: bool,
pub seed: Option<u64>,
pub nodes: Option<u64>,
pub iterations: Option<u64>,
pub depth_reached: Option<u32>,
pub score: Option<f64>,
pub peak_memory_bytes: Option<u64>,
pub extra: Map<String, Value>,
}Expand description
Effective work measured for one move selection. Serializes with the
exact field names of the Python MoveObservation dataclass.
Fields§
§engine: &'static str§config_label: String§position_id: String§mv: String§wall_time_s: f64§cpu_time_s: f64§root_legal_moves: usize§exact: bool§seed: Option<u64>§nodes: Option<u64>§iterations: Option<u64>§depth_reached: Option<u32>§score: Option<f64>§peak_memory_bytes: Option<u64>§extra: Map<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for MoveObservation
impl Clone for MoveObservation
Source§fn clone(&self) -> MoveObservation
fn clone(&self) -> MoveObservation
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 MoveObservation
impl RefUnwindSafe for MoveObservation
impl Send for MoveObservation
impl Sync for MoveObservation
impl Unpin for MoveObservation
impl UnsafeUnpin for MoveObservation
impl UnwindSafe for MoveObservation
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