pub struct CoreTypeEncoder<'a> { /* private fields */ }
Expand description
A single-use encoder for encoding a type; this forces all encoding for a type to be done in a single shot.
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 in this type section.
sourcepub fn array(self, ty: &StorageType, mutable: bool)
pub fn array(self, ty: &StorageType, mutable: bool)
Define an array type in this type section.
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