Struct wasm_encoder::CoreTypeEncoder
source · [−]pub struct CoreTypeEncoder<'a>(_);
Expand description
Used to encode core types.
Implementations
sourceimpl<'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.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for CoreTypeEncoder<'a>
impl<'a> Send for CoreTypeEncoder<'a>
impl<'a> Sync for CoreTypeEncoder<'a>
impl<'a> Unpin for CoreTypeEncoder<'a>
impl<'a> !UnwindSafe for CoreTypeEncoder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more