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§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.