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§
Source§impl RefType
impl RefType
Sourcepub fn new_abstract(ty: AbstractHeapType, nullable: bool, shared: bool) -> Self
pub fn new_abstract(ty: AbstractHeapType, nullable: bool, shared: bool) -> Self
Create a new abstract reference type.
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
)