pub struct PhaseStatistics<Sc: Score> {
pub phase_index: usize,
pub phase_type: String,
pub duration: Duration,
pub step_count: u64,
pub moves_evaluated: u64,
pub moves_accepted: u64,
pub starting_score: Option<Sc>,
pub ending_score: Option<Sc>,
}Expand description
Statistics for a single solver phase.
Fields§
§phase_index: usizeIndex of this phase (0-based).
phase_type: StringType name of the phase (e.g., “ConstructionHeuristic”, “LocalSearch”).
duration: DurationTime spent in this phase.
step_count: u64Number of steps taken in this phase.
moves_evaluated: u64Number of moves evaluated.
moves_accepted: u64Number of moves accepted.
starting_score: Option<Sc>Score at the start of the phase.
ending_score: Option<Sc>Score at the end of the phase.
Implementations§
Source§impl<Sc: Score> PhaseStatistics<Sc>
impl<Sc: Score> PhaseStatistics<Sc>
Trait Implementations§
Source§impl<Sc: Clone + Score> Clone for PhaseStatistics<Sc>
impl<Sc: Clone + Score> Clone for PhaseStatistics<Sc>
Source§fn clone(&self) -> PhaseStatistics<Sc>
fn clone(&self) -> PhaseStatistics<Sc>
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 moreAuto Trait Implementations§
impl<Sc> Freeze for PhaseStatistics<Sc>where
Sc: Freeze,
impl<Sc> RefUnwindSafe for PhaseStatistics<Sc>where
Sc: RefUnwindSafe,
impl<Sc> Send for PhaseStatistics<Sc>
impl<Sc> Sync for PhaseStatistics<Sc>
impl<Sc> Unpin for PhaseStatistics<Sc>where
Sc: Unpin,
impl<Sc> UnwindSafe for PhaseStatistics<Sc>where
Sc: 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