pub trait Codegen {
// Required method
fn constraint_evaluation_code(constraints: &Constraints) -> TokenStream;
// Provided methods
fn tokenize_bfe(bfe: BFieldElement) -> TokenStream { ... }
fn tokenize_xfe(xfe: XFieldElement) -> TokenStream { ... }
}
Required Methods§
fn constraint_evaluation_code(constraints: &Constraints) -> TokenStream
Provided Methods§
fn tokenize_bfe(bfe: BFieldElement) -> TokenStream
fn tokenize_xfe(xfe: XFieldElement) -> TokenStream
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.