pub struct ComponentCoreTypeEncoder<'a>(/* private fields */);
Available on crate feature
component-model
only.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