Enum wasm_encoder::HeapType
source · pub enum HeapType {
Func,
Extern,
TypedFunc(u32),
}
Expand description
Part of the function references proposal.
Variants§
Func
A function reference. When nullable, equivalent to funcref
Extern
An extern reference. When nullable, equivalent to externref
TypedFunc(u32)
A reference to a particular index in a table.
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