Document Compiler trait

This commit is contained in:
Brandon Fish 2018-12-28 16:09:10 -06:00
parent a5b4cc21f6
commit 4a7560dcd3

View File

@ -2,5 +2,6 @@ use crate::runtime::module::Module;
use std::sync::Arc;
pub trait Compiler {
/// Compiles a `Module` from WebAssembly binary format
fn compile(&self, wasm: &[u8]) -> Result<Arc<Module>, String>;
}