Trait CostEstimation

Source
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§

Required Methods§

Source

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.

Implementors§