#[non_exhaustive]pub enum AbstractHeapType {
Func,
Extern,
Any,
None,
NoExtern,
NoFunc,
Eq,
Struct,
Array,
I31,
Exn,
NoExn,
}Expand description
Abstract heap types for GC reference types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Func
The abstract func heap type (any function).
Extern
The abstract extern heap type (external/host references).
Any
The abstract any heap type (any internal reference).
None
The abstract none heap type (bottom type for internal refs).
NoExtern
The abstract noextern heap type (bottom type for external refs).
NoFunc
The abstract nofunc heap type (bottom type for function refs).
Eq
The abstract eq heap type (comparable references: i31, struct, array).
Struct
The abstract struct heap type.
Array
The abstract array heap type.
I31
The abstract i31 heap type (31-bit integers).
Exn
The abstract exn heap type (exceptions).
NoExn
The abstract noexn heap type (bottom type for exception refs).
Trait Implementations§
Source§impl Clone for AbstractHeapType
impl Clone for AbstractHeapType
Source§fn clone(&self) -> AbstractHeapType
fn clone(&self) -> AbstractHeapType
Returns a duplicate 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 AbstractHeapType
impl Debug for AbstractHeapType
Source§impl Hash for AbstractHeapType
impl Hash for AbstractHeapType
Source§impl Into<AbstractHeapType> for AbstractHeapType
impl Into<AbstractHeapType> for AbstractHeapType
Source§fn into(self) -> AbstractHeapType
fn into(self) -> AbstractHeapType
Converts this type into the (usually inferred) input type.
Source§impl Ord for AbstractHeapType
impl Ord for AbstractHeapType
Source§fn cmp(&self, other: &AbstractHeapType) -> Ordering
fn cmp(&self, other: &AbstractHeapType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AbstractHeapType
impl PartialEq for AbstractHeapType
Source§impl PartialOrd for AbstractHeapType
impl PartialOrd for AbstractHeapType
Source§impl TryFrom<AbstractHeapType> for AbstractHeapType
impl TryFrom<AbstractHeapType> 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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.