Struct RecipeSegment
#[non_exhaustive]pub struct RecipeSegment {
pub trial: u64,
pub start_step: u64,
pub end_step: Option<u64>,
pub params: Assignment,
pub event: Option<RecipeEvent>,
}Expand description
One trial’s stretch of a Recipe.
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.trial: u64The per-study number of the trial that trained this stretch.
start_step: u64The step the stretch starts at: 0 for the first segment’s fresh
start, otherwise the step of the checkpoint the trial started from.
end_step: Option<u64>The step the stretch ends at: the step the next segment forked at, or,
for the leaf, its highest reported step (None if it never reported).
params: AssignmentThe trial’s full typed configuration.
event: Option<RecipeEvent>The fork or restart that began this trial, or None for a root.
Trait Implementations§
§impl Clone for RecipeSegment
impl Clone for RecipeSegment
§fn clone(&self) -> RecipeSegment
fn clone(&self) -> RecipeSegment
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 RecipeSegment
impl Debug for RecipeSegment
§impl<'de> Deserialize<'de> for RecipeSegment
impl<'de> Deserialize<'de> for RecipeSegment
§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 RecipeSegment
impl PartialEq for RecipeSegment
§impl Serialize for RecipeSegment
impl Serialize for RecipeSegment
impl StructuralPartialEq for RecipeSegment
Auto Trait Implementations§
impl Freeze for RecipeSegment
impl RefUnwindSafe for RecipeSegment
impl Send for RecipeSegment
impl Sync for RecipeSegment
impl Unpin for RecipeSegment
impl UnsafeUnpin for RecipeSegment
impl UnwindSafe for RecipeSegment
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