pub struct ExperimentSpec { /* private fields */ }Expand description
Experiment specification following EDD principles.
Every experiment must have:
- Explicit seed (Pillar 3: Seed It)
- Falsification criteria (Pillar 4: Falsify It)
- Reference to EMC (Pillar 1: Prove It)
Implementations§
Source§impl ExperimentSpec
impl ExperimentSpec
Sourcepub fn builder() -> ExperimentSpecBuilder
pub fn builder() -> ExperimentSpecBuilder
Create a new experiment spec builder.
Sourcepub fn emc_reference(&self) -> Option<&str>
pub fn emc_reference(&self) -> Option<&str>
Get the EMC reference.
Sourcepub fn hypothesis(&self) -> Option<&ExperimentHypothesis>
pub fn hypothesis(&self) -> Option<&ExperimentHypothesis>
Get the hypothesis.
Sourcepub fn falsification_criteria(&self) -> &[FalsificationCriterion]
pub fn falsification_criteria(&self) -> &[FalsificationCriterion]
Get falsification criteria.
Sourcepub fn replications(&self) -> u32
pub fn replications(&self) -> u32
Get number of replications.
Sourcepub fn run_length(&self) -> f64
pub fn run_length(&self) -> f64
Get run length.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Get description.
Trait Implementations§
Source§impl Clone for ExperimentSpec
impl Clone for ExperimentSpec
Source§fn clone(&self) -> ExperimentSpec
fn clone(&self) -> ExperimentSpec
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 moreSource§impl Debug for ExperimentSpec
impl Debug for ExperimentSpec
Source§impl<'de> Deserialize<'de> for ExperimentSpec
impl<'de> Deserialize<'de> for ExperimentSpec
Source§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
Auto Trait Implementations§
impl Freeze for ExperimentSpec
impl RefUnwindSafe for ExperimentSpec
impl Send for ExperimentSpec
impl Sync for ExperimentSpec
impl Unpin for ExperimentSpec
impl UnsafeUnpin for ExperimentSpec
impl UnwindSafe for ExperimentSpec
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