pub trait CodeGenBackend: Debug {
// Required methods
fn generate(&self, graph: &FxGraph) -> Result<String>;
fn file_extension(&self) -> &'static str;
fn language_name(&self) -> &'static str;
}Expand description
Core backend trait for code generation
Required Methods§
fn generate(&self, graph: &FxGraph) -> Result<String>
fn file_extension(&self) -> &'static str
fn language_name(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".