pub struct Interface(/* private fields */);Expand description
The interface exported by the WebAssembly module.
Implementations§
Source§impl Interface
impl Interface
Sourcepub fn from_wit(name: &str, src: &str) -> Result<Self, Error>
pub fn from_wit(name: &str, src: &str) -> Result<Self, Error>
Parse an interface definition in the WIT format.
This will not attempt to parse any other files the interface definition depends on.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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