[][src]Trait libchisel::ModuleTranslator

pub trait ModuleTranslator {
    fn translate(&self, module: &Module) -> Result<Option<Module>, ModuleError>;
fn translate_inplace(
        &self,
        module: &mut Module
    ) -> Result<bool, ModuleError>; }

Required methods

fn translate(&self, module: &Module) -> Result<Option<Module>, ModuleError>

Translates module. Returns new module or none if nothing was modified. Can fail with ModuleError::NotSupported.

fn translate_inplace(&self, module: &mut Module) -> Result<bool, ModuleError>

Translates module in-place. Returns true if the module was modified. Can fail with ModuleError::NotSupported.

Loading content...

Implementors

impl ModuleTranslator for Deployer[src]

impl ModuleTranslator for RemapStart[src]

impl ModuleTranslator for Repack[src]

impl ModuleTranslator for Snip[src]

impl ModuleTranslator for TrimExports[src]

impl ModuleTranslator for TrimStartFunc[src]

impl<'a> ModuleTranslator for DropSection[src]

impl<'a> ModuleTranslator for RemapImports<'a>[src]

Loading content...