Struct GrowthDecision
#[non_exhaustive]pub struct GrowthDecision {
pub completed: u64,
pub name: String,
pub side: Side,
pub reason: GrowthReason,
pub live: Distribution,
}Expand description
One growth decision the replay took, in the order it took them.
The record the study loop turns into a StudyEvent and an atune run line,
and the doctor turns into a finding. Carries the parameter name (this is
an in-process record, not the Copy event; the event’s name-sorted index is
derived by the emitter).
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.completed: u64How many trials had completed when the decision was taken.
name: StringThe parameter it concerns.
side: SideThe side it concerns.
reason: GrowthReasonWhat was decided (any of the seven GrowthReasons).
live: DistributionThe live distribution after the decision — what a terminal line
renders. Bounds stay out of the StudyEvent; a decision
record is exactly where they do belong.
Trait Implementations§
§impl Clone for GrowthDecision
impl Clone for GrowthDecision
§fn clone(&self) -> GrowthDecision
fn clone(&self) -> GrowthDecision
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 GrowthDecision
impl Debug for GrowthDecision
§impl PartialEq for GrowthDecision
impl PartialEq for GrowthDecision
impl StructuralPartialEq for GrowthDecision
Auto Trait Implementations§
impl Freeze for GrowthDecision
impl RefUnwindSafe for GrowthDecision
impl Send for GrowthDecision
impl Sync for GrowthDecision
impl Unpin for GrowthDecision
impl UnsafeUnpin for GrowthDecision
impl UnwindSafe for GrowthDecision
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