doc(deprecated) Update the old and new API comparison.

This commit is contained in:
Ivan Enderlin
2020-07-02 12:50:32 +02:00
parent ed8bdf269d
commit df1d28031b
4 changed files with 24 additions and 22 deletions

View File

@@ -1,10 +1,10 @@
struct Module {}
impl Module {
fn instantiate(&self, import_object: &ImportObject) -> Result<Instance, InstantiationError>;
fn cache(&self) -> Result<Artifact, Infallible>;
fn instantiate(&self, import_object: &ImportObject) -> Result<Instance>;
fn cache(&self) -> Result<Artifact, CacheError>;
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>>>;
fn custom_sections(&self, key: impl AsRef<str>) -> Option<&[Vec<u8>]>
}