Add Module::custom_sections and FromToNativeWasmType::is_from_store

This commit is contained in:
Felix Schütt
2022-08-24 11:12:37 +02:00
parent cd342453db
commit 4540e3ba8f
3 changed files with 29 additions and 12 deletions

View File

@@ -551,16 +551,16 @@ impl Module {
ExportsIterator::new(iter, exports.length() as usize)
}
// /// Get the custom sections of the module given a `name`.
// ///
// /// # Important
// ///
// /// Following the WebAssembly spec, one name can have multiple
// /// custom sections. That's why an iterator (rather than one element)
// /// is returned.
// pub fn custom_sections<'a>(&'a self, name: &'a str) -> impl Iterator<Item = Arc<[u8]>> + 'a {
// unimplemented!();
// }
/// Get the custom sections of the module given a `name`.
///
/// # Important
///
/// Following the WebAssembly spec, one name can have multiple
/// custom sections. That's why an iterator (rather than one element)
/// is returned.
pub fn custom_sections<'a>(&'a self, name: &'a str) -> impl Iterator<Item = Box<[u8]>> + 'a {
unimplemented!()
}
}
impl fmt::Debug for Module {