pub struct ReconstructionTrace {
pub iterations: Vec<IterationRecord>,
pub algorithm_metrics: Vec<AlgorithmMetricRecord>,
}Expand description
Execution trace recorded for every reconstruction, independently of diagnostic callbacks.
Fields§
§iterations: Vec<IterationRecord>Universal objective and elapsed time, one record per completed iteration.
algorithm_metrics: Vec<AlgorithmMetricRecord>Optional algorithm-owned scalar metrics keyed by iteration and namespace.
Implementations§
Source§impl ReconstructionTrace
impl ReconstructionTrace
Sourcepub fn final_objective(&self) -> Option<f64>
pub fn final_objective(&self) -> Option<f64>
Returns the last completed iteration’s objective, or None for an empty trace.
Trait Implementations§
Source§impl Clone for ReconstructionTrace
impl Clone for ReconstructionTrace
Source§fn clone(&self) -> ReconstructionTrace
fn clone(&self) -> ReconstructionTrace
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 moreSource§impl Debug for ReconstructionTrace
impl Debug for ReconstructionTrace
Source§impl Default for ReconstructionTrace
impl Default for ReconstructionTrace
Source§fn default() -> ReconstructionTrace
fn default() -> ReconstructionTrace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReconstructionTrace
impl<'de> Deserialize<'de> for ReconstructionTrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReconstructionTrace
impl PartialEq for ReconstructionTrace
Source§fn eq(&self, other: &ReconstructionTrace) -> bool
fn eq(&self, other: &ReconstructionTrace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReconstructionTrace
impl Serialize for ReconstructionTrace
impl StructuralPartialEq for ReconstructionTrace
Auto Trait Implementations§
impl Freeze for ReconstructionTrace
impl RefUnwindSafe for ReconstructionTrace
impl Send for ReconstructionTrace
impl Sync for ReconstructionTrace
impl Unpin for ReconstructionTrace
impl UnsafeUnpin for ReconstructionTrace
impl UnwindSafe for ReconstructionTrace
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
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