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.
Sourcepub fn module_filename(&self) -> &str
pub fn module_filename(&self) -> &str
pub fn requires_wasi(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more