Start aesthetic refactoring
This commit is contained in:
parent
1fda67d6d3
commit
d1ad9ddb7a
@ -1,4 +1,3 @@
|
||||
pub mod builder;
|
||||
pub mod node;
|
||||
pub mod visit;
|
||||
pub mod writer;
|
||||
|
@ -1,19 +0,0 @@
|
||||
use std::io::{Result, Write};
|
||||
|
||||
use parity_wasm::elements::Module;
|
||||
|
||||
pub type Writer<'a> = &'a mut dyn Write;
|
||||
|
||||
pub trait Transpiler<'a> {
|
||||
fn new(wasm: &'a Module) -> Self
|
||||
where
|
||||
Self: Sized;
|
||||
|
||||
/// # Errors
|
||||
/// Returns `Err` if writing to `Writer` failed.
|
||||
fn runtime(writer: Writer) -> Result<()>;
|
||||
|
||||
/// # Errors
|
||||
/// Returns `Err` if writing to `Writer` failed.
|
||||
fn transpile(&self, writer: Writer) -> Result<()>;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user