pub trait Assumable: Identifiable {
// Required methods
fn description(&self) -> DescriptionValue;
fn assumption_tested(&self) -> bool;
fn assumption_valid(&self) -> bool;
fn verify_assumption(
&self,
data: &[PropagatingEffect<f64>],
) -> Result<bool, AssumptionError>;
}Expand description
The Assumable trait defines the interface for objects that represent assumptions that can be tested and verified. Assumable types must also implement Identifiable.
§Trait Methods
description- Returns a description of the assumption as a DescriptionValueassumption_fn- Returns the function that will evaluate the assumption as an EvalFnassumption_tested- Returns whether this assumption has been testedassumption_valid- Returns whether this assumption is validverify_assumption- Tests the assumption against the provided data and returns whether it is valid
The AssumableReasoning trait provides default implementations for common operations over collections of Assumable types.