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 PartialOrd for RefType
impl PartialOrd for RefType
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)