pub enum HeapType {
Show 15 variants
Concrete(u32),
Func,
Extern,
Any,
None,
NoExtern,
NoFunc,
Eq,
Struct,
Array,
I31,
Exn,
NoExn,
Cont,
NoCont,
}Expand description
A heap type of a reference type.
Variants§
Concrete(u32)
User defined type at the given index.
Func
Untyped (any) function.
Extern
External heap type.
Any
The any heap type.
None
The none heap type.
NoExtern
The noextern heap type.
NoFunc
The nofunc heap type.
Eq
The eq heap type.
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.
Exn
The abstraction exception heap type.
Introduced in the exception-handling proposal.
NoExn
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 common subtype (a.k.a. bottom) of all continuation types.
Introduced in the stack-switching proposal.
Trait Implementations§
impl Copy for HeapType
impl Eq for HeapType
impl StructuralPartialEq for HeapType
Auto Trait Implementations§
impl Freeze for HeapType
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
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.