pub enum Ref<E: WasmEngine> {
FuncRef(Option<E::Func>),
ExternRef(Option<E::ExternRef>),
}Expand description
Runtime representation of a reference.
Variants§
FuncRef(Option<E::Func>)
An optional function reference.
ExternRef(Option<E::ExternRef>)
An optional external reference.
Implementations§
Trait Implementations§
Source§impl<E: WasmEngine> Debug for Ref<E>
impl<E: WasmEngine> Debug for Ref<E>
Auto Trait Implementations§
impl<E> Freeze for Ref<E>
impl<E> RefUnwindSafe for Ref<E>
impl<E> Send for Ref<E>
impl<E> Sync for Ref<E>
impl<E> Unpin for Ref<E>
impl<E> UnsafeUnpin for Ref<E>
impl<E> UnwindSafe for Ref<E>
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