InitFileGenerator

Trait InitFileGenerator 

Source
pub trait InitFileGenerator {
    // Provided methods
    fn generate_init_file_contents(&self) -> Option<String> { ... }
    fn write_to_init_file(
        &self,
        manifest_dir: &Path,
        init_file_name: Option<&str>,
    ) -> Result<()> { ... }
}
Expand description

Trait for generating a init.rs file that contains a call to moduli_init!, complex_init!, sw_init! with the supported moduli and curves. Should be implemented by all VM config structs.

Provided Methods§

Source

fn generate_init_file_contents(&self) -> Option<String>

Source

fn write_to_init_file( &self, manifest_dir: &Path, init_file_name: Option<&str>, ) -> Result<()>

Implementors§