pub trait Backend {
// Required methods
fn id(&self) -> &'static str;
fn extension(&self) -> &'static str;
fn generate(
&self,
ws: &CheckedWorkspace,
options: &GenOptions,
) -> Result<Vec<GeneratedFile>, GenError>;
}Expand description
A target language this can generate for.
Required Methods§
Sourcefn generate(
&self,
ws: &CheckedWorkspace,
options: &GenOptions,
) -> Result<Vec<GeneratedFile>, GenError>
fn generate( &self, ws: &CheckedWorkspace, options: &GenOptions, ) -> Result<Vec<GeneratedFile>, GenError>
Writes out a whole workspace.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".