Enum wast::HeapType [−][src]
pub enum HeapType<'a> { Func, Extern, Any, Eq, Data, I31, Index(Index<'a>), }
Expand description
A heap type for a reference type
Variants
An untyped function reference: funcref. This is part of the reference types proposal.
A reference to any host value: externref. This is part of the reference types proposal.
A reference to any reference value: anyref. This is part of the GC proposal.
A reference that has an identity that can be compared: eqref. This is part of the GC proposal.
A reference to a GC object. This is part of the GC proposal.
An unboxed 31-bit integer: i31ref. This may be going away if there is no common supertype of all reference types. Part of the GC proposal.
Index(Index<'a>)
A reference to a function, struct, or array: ref T. This is part of the GC proposal.
Trait Implementations
Returns a human-readable name of this token to display when generating errors about this token missing. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for HeapType<'a>
impl<'a> UnwindSafe for HeapType<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more