Struct wasmer_pack::Library
source · pub struct Library {
pub module: Module,
pub exports: Interface,
pub imports: Vec<Interface>,
}Fields§
§module: Module§exports: Interface§imports: Vec<Interface>Implementations§
source§impl Library
impl Library
sourcepub fn interface_name(&self) -> &str
pub fn interface_name(&self) -> &str
The name of the interface being generated.
If coming from a WIT file, this will be the wasmer-pack in
wasmer-pack.exports.wit.
sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
The name of the class generated by wai-bindgen.
For example, if you were generating bindings for wasmer-pack.exports.wit,
this would be WasmerPack.