pub trait RandomGenerate: DynProblem + Sized {
// Required methods
fn inputs() -> Vec<CreateInputInfo>;
fn generate(data: Value) -> Result<Self, ConstructionError>;
}Expand description
A concrete problem type that can generate itself from typed random inputs.
Required Methods§
Sourcefn inputs() -> Vec<CreateInputInfo>
fn inputs() -> Vec<CreateInputInfo>
Inputs accepted by this model’s random generator.
Sourcefn generate(data: Value) -> Result<Self, ConstructionError>
fn generate(data: Value) -> Result<Self, ConstructionError>
Generate a concrete problem from normalized random inputs.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".