pub struct CodeGenerator { /* private fields */ }
Expand description

CodeGenerator is used to generate a Rust implementation of the Winterfell STARK prover library’s Air trait. The generated Air expresses the constraints specified by the AirIR used to build the CodeGenerator.

Implementations

Builds a new Rust scope that represents a Winterfell Air trait implementation for the provided AirIR.

Returns a string of Rust code containing a Winterfell Air implementation for the AirIR with which this CodeGenerator was instantiated.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.