Enum wasm_encoder::HeapType
source · pub enum HeapType {
Show 13 variants
Func,
Extern,
Any,
None,
NoExtern,
NoFunc,
Eq,
Struct,
Array,
I31,
Exn,
NoExn,
Concrete(u32),
}
Expand description
Part of the function references proposal.
Variants§
Func
Untyped (any) function.
Extern
The abstract external heap type.
Any
The abstract any
heap type.
The common supertype (a.k.a. top) of all internal types.
None
The abstract none
heap type.
The common subtype (a.k.a. bottom) of all internal types.
NoExtern
The abstract noextern
heap type.
The common subtype (a.k.a. bottom) of all external types.
NoFunc
The abstract nofunc
heap type.
The common subtype (a.k.a. bottom) of all function types.
Eq
The abstract eq
heap type.
The common supertype of all referenceable types on which comparison (ref.eq) is allowed.
Struct
The abstract struct
heap type.
The common supertype of all struct types.
Array
The abstract array
heap type.
The common supertype of all array types.
I31
The unboxed i31
heap type.
Exn
The abstract exception
heap type.
NoExn
The abstract noexn
heap type.
Concrete(u32)
A concrete Wasm-defined type at the given index.
Trait Implementations§
source§impl Ord for HeapType
impl Ord for HeapType
source§impl PartialEq for HeapType
impl PartialEq for HeapType
source§impl PartialOrd for HeapType
impl PartialOrd for HeapType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more