pub trait CostEstimation<T> {
type Input;
// Required method
fn estimate_cost(input: &Self::Input) -> Cost;
}
Expand description
For estimating cost of a verifier.
Required Associated Types§
Sourcetype Input
type Input
Input for CostEstimation::estimate_cost
.
Required Methods§
Sourcefn estimate_cost(input: &Self::Input) -> Cost
fn estimate_cost(input: &Self::Input) -> Cost
Estimate cost of verifier given the input.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.