scientific-method 0.2.0

The parts of the scientific method used to define and evaluate experiments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright © 2026 James Hunt. All rights reserved.

/// A concrete expected observation implied by a hypothesis.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Prediction {
    pub statement: String,
}

impl Prediction {
    pub fn new(statement: impl Into<String>) -> Self {
        Self {
            statement: statement.into(),
        }
    }
}