Closed alexcrichton closed 5 years ago
if you had to parse multiple, you'd need to still define your own on_parse callback.
True!
I think you can still use the built-in method though:
ModuleConfig::new().on_parse(|module, ids| {
// my stuf
wasm_webidl_bindings::on_parse(module, ids)?;
Ok(())
})
(vs having to write it all inline)
Ah yes it's a lot nicer with remove_raw
, not sure how I missed that earlier...
Allows passing this function directly to
walrus
'son_parse
callback without having to write it up yourself!