Struct wasm_encoder::CoreTypeEncoder
source · pub struct CoreTypeEncoder<'a>(/* private fields */);
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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CoreTypeEncoder<'a>
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§
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