pub struct ExperimentMetadata {
pub generations: usize,
pub rng_seed: Option<u64>,
pub rng_description: String,
}Expand description
Metadata describing an executed experiment.
§Examples
use jeans::ExperimentMetadata;
let metadata = ExperimentMetadata::new(10, Some(7), "StdRng");
assert_eq!(metadata.generations, 10);Fields§
§generations: usizeNumber of generations executed by the experiment.
rng_seed: Option<u64>Optional RNG seed recorded by the caller.
rng_description: StringHuman readable description of the RNG used for the run.
Implementations§
Trait Implementations§
Source§impl Clone for ExperimentMetadata
impl Clone for ExperimentMetadata
Source§fn clone(&self) -> ExperimentMetadata
fn clone(&self) -> ExperimentMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExperimentMetadata
impl RefUnwindSafe for ExperimentMetadata
impl Send for ExperimentMetadata
impl Sync for ExperimentMetadata
impl Unpin for ExperimentMetadata
impl UnwindSafe for ExperimentMetadata
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