pub enum CoreDef {
Export(CoreExport<EntityIndex>),
InstanceFlags(RuntimeComponentInstanceIndex),
Trampoline(TrampolineIndex),
Adapter(AdapterId),
}
Expand description
Same as info::CoreDef
, except has an extra Adapter
variant.
Variants§
Export(CoreExport<EntityIndex>)
InstanceFlags(RuntimeComponentInstanceIndex)
Trampoline(TrampolineIndex)
Adapter(AdapterId)
This is a special variant not present in info::CoreDef
which
represents that this definition refers to a fused adapter function. This
adapter is fully processed after the initial translation and
identificatino of adapters.
During translation into info::CoreDef
this variant is erased and
replaced by info::CoreDef::Export
since adapters are always
represented as the exports of a core wasm instance.
Trait Implementations§
source§impl<T> From<CoreExport<T>> for CoreDefwhere
EntityIndex: From<T>,
impl<T> From<CoreExport<T>> for CoreDefwhere
EntityIndex: From<T>,
source§fn from(export: CoreExport<T>) -> CoreDef
fn from(export: CoreExport<T>) -> CoreDef
Converts to this type from the input type.
impl Eq for CoreDef
impl StructuralPartialEq for CoreDef
Auto Trait Implementations§
impl Freeze for CoreDef
impl RefUnwindSafe for CoreDef
impl Send for CoreDef
impl Sync for CoreDef
impl Unpin for CoreDef
impl UnwindSafe for CoreDef
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.