pub enum CoreDef {
Export(CoreExport<EntityIndex>),
InstanceFlags(RuntimeComponentInstanceIndex),
Trampoline(TrampolineIndex),
}
Expand description
Definition of a core wasm item and where it can come from within a component.
Note that this is sort of a result of data-flow-like analysis on a component during compile time of the component itself. References to core wasm items are “compiled” to either referring to a previous instance or to some sort of lowered host import.
Variants§
Export(CoreExport<EntityIndex>)
This item refers to an export of a previously instantiated core wasm instance.
InstanceFlags(RuntimeComponentInstanceIndex)
This is a reference to a wasm global which represents the runtime-managed flags for a wasm instance.
Trampoline(TrampolineIndex)
This is a reference to a Cranelift-generated trampoline which is
described in the trampolines
array.
Trait Implementations§
source§impl<'de> Deserialize<'de> for CoreDef
impl<'de> Deserialize<'de> for CoreDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.