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
// Copyright © 2026 James Hunt. All rights reserved.

/// The question an experiment is intended to answer.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Question {
    pub text: String,
}

impl Question {
    pub fn new(text: impl Into<String>) -> Self {
        Self { text: text.into() }
    }
}