pub struct ScientificMethod {
pub question: Option<Question>,
pub hypothesis: Hypothesis,
pub predictions: Vec<Prediction>,
pub independent_variables: Vec<IndependentVariable>,
pub dependent_variables: Vec<DependentVariable>,
pub controls: Vec<Control>,
pub criteria: Vec<Criterion>,
}Expand description
A complete statement of the scientific method for one experiment.
Fields§
§question: Option<Question>§hypothesis: Hypothesis§predictions: Vec<Prediction>§independent_variables: Vec<IndependentVariable>§dependent_variables: Vec<DependentVariable>§controls: Vec<Control>§criteria: Vec<Criterion>Implementations§
Source§impl ScientificMethod
impl ScientificMethod
pub fn new(hypothesis: Hypothesis) -> Self
pub fn question(self, question: Question) -> Self
pub fn prediction(self, prediction: Prediction) -> Self
pub fn independent(self, variable: IndependentVariable) -> Self
pub fn dependent(self, variable: DependentVariable) -> Self
pub fn control(self, control: Control) -> Self
pub fn criterion(self, criterion: Criterion) -> Self
Sourcepub fn evaluate(
&self,
observations: &Observations,
) -> Result<MethodEvaluation, CriterionError>
pub fn evaluate( &self, observations: &Observations, ) -> Result<MethodEvaluation, CriterionError>
Evaluate every declared criterion against the supplied observations.
Trait Implementations§
Source§impl Clone for ScientificMethod
impl Clone for ScientificMethod
Source§impl Debug for ScientificMethod
impl Debug for ScientificMethod
Source§impl PartialEq for ScientificMethod
impl PartialEq for ScientificMethod
impl StructuralPartialEq for ScientificMethod
Auto Trait Implementations§
impl Freeze for ScientificMethod
impl RefUnwindSafe for ScientificMethod
impl Send for ScientificMethod
impl Sync for ScientificMethod
impl Unpin for ScientificMethod
impl UnsafeUnpin for ScientificMethod
impl UnwindSafe for ScientificMethod
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