pub struct GameAnalysisProgress<W: WarningHandling = WarningsAsErrors> { /* private fields */ }Expand description
A collection of in-progress analysis operations for multiple positions in a single game.
Implementations§
Source§impl<W: WarningHandling> GameAnalysisProgress<W>
impl<W: WarningHandling> GameAnalysisProgress<W>
Sourcepub async fn finish(self) -> WarningResult<HashMap<usize, AnalysisResult>, W>
pub async fn finish(self) -> WarningResult<HashMap<usize, AnalysisResult>, W>
Waits for all positions to finish analyzing and returns the results.
Positions that were terminated before any search was performed will not be included in the results.
Sourcepub fn positions(&self) -> &HashMap<usize, AnalysisProgress<W>>
pub fn positions(&self) -> &HashMap<usize, AnalysisProgress<W>>
Returns a reference to the raw collection of in-progress analysis operations for each position.
Sourcepub fn positions_mut(&mut self) -> &mut HashMap<usize, AnalysisProgress<W>>
pub fn positions_mut(&mut self) -> &mut HashMap<usize, AnalysisProgress<W>>
Returns a mutable reference to the raw collection of in-progress analysis operations for each position.
Sourcepub fn into_positions(self) -> HashMap<usize, AnalysisProgress<W>>
pub fn into_positions(self) -> HashMap<usize, AnalysisProgress<W>>
Extracts the collection of in-progress analysis operations for each position and consumes this object.
Trait Implementations§
Source§impl<W: WarningHandling> Debug for GameAnalysisProgress<W>
impl<W: WarningHandling> Debug for GameAnalysisProgress<W>
Auto Trait Implementations§
impl<W> Freeze for GameAnalysisProgress<W>
impl<W = WarningsAsErrors> !RefUnwindSafe for GameAnalysisProgress<W>
impl<W> Send for GameAnalysisProgress<W>
impl<W> Sync for GameAnalysisProgress<W>
impl<W> Unpin for GameAnalysisProgress<W>
impl<W> UnsafeUnpin for GameAnalysisProgress<W>
impl<W = WarningsAsErrors> !UnwindSafe for GameAnalysisProgress<W>
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