pub struct LabState<R: Rng + Clone, Input, EditSt, Output, Editor: Generate<Input> + Edit<Input, EditSt>, Archivist: ComputeDemand<Input, Output>> {
pub params: LabParams,
pub rng: Box<R>,
pub change_batch_num: usize,
pub dcg_state: LabEngineState<Input, EditSt, Output, Editor, Archivist>,
pub naive_state: LabEngineState<Input, EditSt, Output, Editor, Archivist>,
pub samples: Vec<Sample>,
}Fields§
§params: LabParams§rng: Box<R>§change_batch_num: usize§dcg_state: LabEngineState<Input, EditSt, Output, Editor, Archivist>§naive_state: LabEngineState<Input, EditSt, Output, Editor, Archivist>§samples: Vec<Sample>Trait Implementations§
Source§impl<Input: Clone + Debug, EditSt, Output: Eq + Debug, Editor: Generate<Input> + Edit<Input, EditSt>, Archivist: ComputeDemand<Input, Output>> SampleGen for LabState<StdRng, Input, EditSt, Output, Editor, Archivist>
Advances the LabState forward by one sample of each engine. For
each engine, we process the current input (either generating it,
or editing it) and we compute a new output over this processed input.
Optionally, we compare the outputs of the engines for equality.
impl<Input: Clone + Debug, EditSt, Output: Eq + Debug, Editor: Generate<Input> + Edit<Input, EditSt>, Archivist: ComputeDemand<Input, Output>> SampleGen for LabState<StdRng, Input, EditSt, Output, Editor, Archivist>
Advances the LabState forward by one sample of each engine. For each engine, we process the current input (either generating it, or editing it) and we compute a new output over this processed input. Optionally, we compare the outputs of the engines for equality.
Auto Trait Implementations§
impl<R, Input, EditSt, Output, Editor, Archivist> !Freeze for LabState<R, Input, EditSt, Output, Editor, Archivist>
impl<R, Input, EditSt, Output, Editor, Archivist> !RefUnwindSafe for LabState<R, Input, EditSt, Output, Editor, Archivist>
impl<R, Input, EditSt, Output, Editor, Archivist> !Send for LabState<R, Input, EditSt, Output, Editor, Archivist>
impl<R, Input, EditSt, Output, Editor, Archivist> !Sync for LabState<R, Input, EditSt, Output, Editor, Archivist>
impl<R, Input, EditSt, Output, Editor, Archivist> Unpin for LabState<R, Input, EditSt, Output, Editor, Archivist>
impl<R, Input, EditSt, Output, Editor, Archivist> !UnwindSafe for LabState<R, Input, EditSt, Output, Editor, Archivist>
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