Struct TrialEstimates
#[non_exhaustive]pub struct TrialEstimates {
pub checkpoint: Option<EstimateRecord>,
pub recipe: Option<EstimateRecord>,
}Expand description
A trial’s final-stage estimates: the version-1 atune.estimate record.
Each estimand’s record is replaced on its own; storing one never changes the other.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.checkpoint: Option<EstimateRecord>The latest-checkpoint estimate, if one was stored.
recipe: Option<EstimateRecord>The recipe-replay estimate, if one was stored.
Implementations§
§impl TrialEstimates
impl TrialEstimates
pub const fn get(&self, evaluation: Evaluation) -> Option<&EstimateRecord>
pub const fn get(&self, evaluation: Evaluation) -> Option<&EstimateRecord>
The stored record for evaluation, if any.
pub fn records(&self) -> impl Iterator<Item = (Evaluation, &EstimateRecord)>
pub fn records(&self) -> impl Iterator<Item = (Evaluation, &EstimateRecord)>
Every stored record with its estimand, checkpoint first.
Trait Implementations§
§impl Clone for TrialEstimates
impl Clone for TrialEstimates
§fn clone(&self) -> TrialEstimates
fn clone(&self) -> TrialEstimates
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 more§impl Debug for TrialEstimates
impl Debug for TrialEstimates
§impl Default for TrialEstimates
impl Default for TrialEstimates
§fn default() -> TrialEstimates
fn default() -> TrialEstimates
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for TrialEstimates
impl<'de> Deserialize<'de> for TrialEstimates
§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
§impl PartialEq for TrialEstimates
impl PartialEq for TrialEstimates
§impl Serialize for TrialEstimates
impl Serialize for TrialEstimates
impl StructuralPartialEq for TrialEstimates
Auto Trait Implementations§
impl Freeze for TrialEstimates
impl RefUnwindSafe for TrialEstimates
impl Send for TrialEstimates
impl Sync for TrialEstimates
impl Unpin for TrialEstimates
impl UnsafeUnpin for TrialEstimates
impl UnwindSafe for TrialEstimates
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