pub trait WitnessTrait: DynClone {
// Required method
fn build_witness(&self) -> WitnessValues;
}Expand description
An interface for structs capable of generating Simplicity program witness mappings.
See the include_simc!() macro, which generates an automatic WitnessTrait implementation.
Required Methods§
Sourcefn build_witness(&self) -> WitnessValues
fn build_witness(&self) -> WitnessValues
Compiles and generates the fully populated WitnessValues map for execution.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".