Struct wasm_encoder::ComponentCoreTypeEncoder
source · pub struct ComponentCoreTypeEncoder<'a>(/* private fields */);
Expand description
Used to encode core types.
Implementations§
source§impl<'a> ComponentCoreTypeEncoder<'a>
impl<'a> ComponentCoreTypeEncoder<'a>
sourcepub fn module(self, ty: &ModuleType)
pub fn module(self, ty: &ModuleType)
Define a module type.
sourcepub fn core(self) -> CoreTypeEncoder<'a>
pub fn core(self) -> CoreTypeEncoder<'a>
Define any core type other than a module type.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ComponentCoreTypeEncoder<'a>
impl<'a> RefUnwindSafe for ComponentCoreTypeEncoder<'a>
impl<'a> Send for ComponentCoreTypeEncoder<'a>
impl<'a> Sync for ComponentCoreTypeEncoder<'a>
impl<'a> Unpin for ComponentCoreTypeEncoder<'a>
impl<'a> !UnwindSafe for ComponentCoreTypeEncoder<'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