Enum wasm_encoder::HeapType
source · pub enum HeapType {
Func,
Extern,
Any,
None,
NoExtern,
NoFunc,
Eq,
Struct,
Array,
I31,
Indexed(u32),
}
Expand description
Part of the function references proposal.
Variants§
Func
Untyped (any) function.
Extern
External heap type.
Any
The any
heap type. The common supertype (a.k.a. top) of all internal types.
None
The none
heap type. The common subtype (a.k.a. bottom) of all internal types.
NoExtern
The noextern
heap type. The common subtype (a.k.a. bottom) of all external types.
NoFunc
The nofunc
heap type. The common subtype (a.k.a. bottom) of all function types.
Eq
The eq
heap type. The common supertype of all referenceable types on which comparison
(ref.eq) is allowed.
Struct
The struct
heap type. The common supertype of all struct types.
Array
The array
heap type. The common supertype of all array types.
I31
The i31 heap type.
Indexed(u32)
User defined type at the given index.
Trait Implementations§
source§impl Ord for HeapType
impl Ord for HeapType
source§impl PartialEq<HeapType> for HeapType
impl PartialEq<HeapType> for HeapType
source§impl PartialOrd<HeapType> for HeapType
impl PartialOrd<HeapType> for HeapType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HeapType
impl Eq for HeapType
impl StructuralEq for HeapType
impl StructuralPartialEq for HeapType
Auto Trait Implementations§
impl RefUnwindSafe for HeapType
impl Send for HeapType
impl Sync for HeapType
impl Unpin for HeapType
impl UnwindSafe for HeapType
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