Struct wasm_encoder::RefType
source · pub struct RefType {
pub nullable: bool,
pub heap_type: HeapType,
}
Expand description
A reference type.
This is largely part of the function references proposal for WebAssembly but
additionally is used by the funcref
and externref
types. The full
generality of this type is only exercised with function-references.
Fields§
§nullable: bool
§heap_type: HeapType
Implementations§
Trait Implementations§
source§impl Ord for RefType
impl Ord for RefType
source§impl PartialEq for RefType
impl PartialEq for RefType
source§impl PartialOrd for RefType
impl PartialOrd for RefType
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 RefType
impl Eq for RefType
impl StructuralPartialEq for RefType
Auto Trait Implementations§
impl Freeze for RefType
impl RefUnwindSafe for RefType
impl Send for RefType
impl Sync for RefType
impl Unpin for RefType
impl UnwindSafe for RefType
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