Struct wasm_encoder::CoreTypeEncoder
source · pub struct CoreTypeEncoder<'a>(_);
Expand description
Used to encode core types.
Implementations§
source§impl<'a> CoreTypeEncoder<'a>
impl<'a> CoreTypeEncoder<'a>
sourcepub fn function<P, R>(self, params: P, results: R)where
P: IntoIterator<Item = ValType>,
P::IntoIter: ExactSizeIterator,
R: IntoIterator<Item = ValType>,
R::IntoIter: ExactSizeIterator,
pub fn function<P, R>(self, params: P, results: R)where P: IntoIterator<Item = ValType>, P::IntoIter: ExactSizeIterator, R: IntoIterator<Item = ValType>, R::IntoIter: ExactSizeIterator,
Define a function type.
sourcepub fn module(self, ty: &ModuleType)
pub fn module(self, ty: &ModuleType)
Define a module type.