Files
wasmer/lib/deprecated/runtime-core/doc/new-api/module.rs
2020-07-02 12:50:32 +02:00

11 lines
393 B
Rust

struct Module {}
impl Module {
fn instantiate(&self, import_object: &ImportObject) -> Result<Instance, InstantiationError>;
fn cache(&self) -> Result<Artifact, Infallible>;
fn info(&self) -> &ModuleInfo;
fn imports(&self) -> Vec<ImportDescriptor>;
fn exports(&self) -> Vec<ExportDescriptor>;
fn custom_sections(&self, name: impl Asref<str>) -> Option<Vec<Vec<u8>>>;
}