Enum wasmparser::AbstractHeapType
source · pub enum AbstractHeapType {
Show 14 variants
Func,
Extern,
Any,
None,
NoExtern,
NoFunc,
Eq,
Struct,
Array,
I31,
Exn,
NoExn,
Cont,
NoCont,
}
Expand description
An abstract heap type.
Variants§
Func
The abstract, untyped (any) function.
Introduced in the references-types proposal.
Extern
The abstract, external heap type.
Introduced in the references-types proposal.
Any
The abstract any
heap type.
The common supertype (a.k.a. top) of all internal types.
Introduced in the GC proposal.
None
The abstract none
heap type.
The common subtype (a.k.a. bottom) of all internal types.
Introduced in the GC proposal.
NoExtern
The abstract noextern
heap type.
The common subtype (a.k.a. bottom) of all external types.
Introduced in the GC proposal.
NoFunc
The abstract nofunc
heap type.
The common subtype (a.k.a. bottom) of all function types.
Introduced in the GC proposal.
Eq
The abstract eq
heap type.
The common supertype of all heap types on which the ref.eq
instruction is allowed.
Introduced in the GC proposal.
Struct
The abstract struct
heap type.
The common supertype of all struct types.
Introduced in the GC proposal.
Array
The abstract array
heap type.
The common supertype of all array types.
Introduced in the GC proposal.
I31
The abstract i31
heap type.
It is not expected that Wasm runtimes actually store these
values on the heap, but unbox them inline into the i31ref
s
themselves instead.
Introduced in the GC proposal.
Exn
The abstraction exception
heap type.
Introduced in the exception-handling proposal.
NoExn
The abstract noexn
heap type.
The common subtype (a.k.a. bottom) of all exception types.
Introduced in the exception-handling proposal.
Cont
The abstract continuation
heap type.
Introduced in the stack-switching proposal.
NoCont
The abstract noexn
heap type.
The common subtype (a.k.a. bottom) of all continuation types.
Introduced in the stack-switching proposal.
Trait Implementations§
source§impl Clone for AbstractHeapType
impl Clone for AbstractHeapType
source§fn clone(&self) -> AbstractHeapType
fn clone(&self) -> AbstractHeapType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AbstractHeapType
impl Debug for AbstractHeapType
source§impl<'a> FromReader<'a> for AbstractHeapType
impl<'a> FromReader<'a> for AbstractHeapType
source§fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
fn from_reader(reader: &mut BinaryReader<'a>) -> Result<Self>
Self
from the provided binary reader, returning an
error if it is unable to do so.source§impl Hash for AbstractHeapType
impl Hash for AbstractHeapType
source§impl PartialEq for AbstractHeapType
impl PartialEq for AbstractHeapType
impl Copy for AbstractHeapType
impl Eq for AbstractHeapType
impl StructuralPartialEq for AbstractHeapType
Auto Trait Implementations§
impl Freeze for AbstractHeapType
impl RefUnwindSafe for AbstractHeapType
impl Send for AbstractHeapType
impl Sync for AbstractHeapType
impl Unpin for AbstractHeapType
impl UnwindSafe for AbstractHeapType
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
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)
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
key
and return true
if they are equal.