Enum wasmtime_environ::WasmHeapType
source · pub enum WasmHeapType {
Extern,
Func,
Concrete(EngineOrModuleTypeIndex),
NoFunc,
Any,
I31,
None,
}
Expand description
WebAssembly heap type – equivalent of wasmparser
’s HeapType
Variants§
Implementations§
source§impl WasmHeapType
impl WasmHeapType
sourcepub fn is_gc_heap_type(&self) -> bool
pub fn is_gc_heap_type(&self) -> bool
Is this a GC type that is allocated within the GC heap? (As opposed to
i31ref
which is a GC type that is not allocated on the GC heap.)
Trait Implementations§
source§impl Clone for WasmHeapType
impl Clone for WasmHeapType
source§fn clone(&self) -> WasmHeapType
fn clone(&self) -> WasmHeapType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WasmHeapType
impl Debug for WasmHeapType
source§impl<'de> Deserialize<'de> for WasmHeapType
impl<'de> Deserialize<'de> for WasmHeapType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<WasmHeapType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<WasmHeapType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WasmHeapType
impl Display for WasmHeapType
source§impl Hash for WasmHeapType
impl Hash for WasmHeapType
source§impl PartialEq for WasmHeapType
impl PartialEq for WasmHeapType
source§fn eq(&self, other: &WasmHeapType) -> bool
fn eq(&self, other: &WasmHeapType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WasmHeapType
impl Serialize for WasmHeapType
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TypeTrace for WasmHeapType
impl TypeTrace for WasmHeapType
source§fn trace_mut<F, E>(&mut self, func: &mut F) -> Result<(), E>
fn trace_mut<F, E>(&mut self, func: &mut F) -> Result<(), E>
Visit each edge, mutably. Read more
source§fn canonicalize<F>(&mut self, module_to_engine: &mut F)
fn canonicalize<F>(&mut self, module_to_engine: &mut F)
Canonicalize
self
by rewriting all type references inside self
from
module-level interned type indices to engine-level interned type
indices.impl Copy for WasmHeapType
impl Eq for WasmHeapType
impl StructuralPartialEq for WasmHeapType
Auto Trait Implementations§
impl Freeze for WasmHeapType
impl RefUnwindSafe for WasmHeapType
impl Send for WasmHeapType
impl Sync for WasmHeapType
impl Unpin for WasmHeapType
impl UnwindSafe for WasmHeapType
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<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.