mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 13:48:26 +00:00
11 lines
392 B
Rust
11 lines
392 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, key: impl AsRef<str>) -> Option<Vec<Vec<u8>>>;
|
|
}
|