Skip to main content

ProvableSolutions

Trait ProvableSolutions 

Source
pub trait ProvableSolutions: Iterator {
    // Required method
    fn best_solution_distance(&self) -> Option<SolutionDistance>;
}
Expand description

Solutions that can be proven if necessary.

Solutions are generated on demand during iteration. Chunks encoded with a placeholder proof (see [PosProofs::PLACEHOLDER_PROOF]) can’t be proven and are skipped, so there may be fewer solutions than winning chunks.

Required Methods§

Source

fn best_solution_distance(&self) -> Option<SolutionDistance>

Best solution distance among winning chunks, None in case there are none.

This is known before proving, so the corresponding chunk may turn out to be skipped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§