[][src]Struct wit_text::Module

pub struct Module<'a> {
    pub core: Module<'a>,
    pub adapters: Vec<Adapter<'a>>,
}

A WebAssembly interface types-enhanced module.

Fields

core: Module<'a>

The core WebAssembly module which doesn't use interface types.

adapters: Vec<Adapter<'a>>

The various @interface adapter directives representing the wasm interface types of this module.

Methods

impl<'_> Module<'_>[src]

pub fn encode(&mut self) -> Result<Vec<u8>, Error>[src]

Encodes this Module into its binary form.

Trait Implementations

impl<'a> Parse<'a> for Module<'a>[src]

Auto Trait Implementations

impl<'a> Send for Module<'a>

impl<'a> Sync for Module<'a>

impl<'a> Unpin for Module<'a>

impl<'a> UnwindSafe for Module<'a>

impl<'a> RefUnwindSafe for Module<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]