pub struct ExternRef(/* private fields */);
Expand description
Newtype wrapper around wasmi::ExternRef
.
Implementations§
Source§impl ExternRef
impl ExternRef
Sourcepub fn new(inner: ExternRef) -> Self
pub fn new(inner: ExternRef) -> Self
Create a wasm_runtime_layer::ExternRef
-compatible ExternRef
from a wasmi::ExternRef
.
Sourcepub fn into_inner(self) -> ExternRef
pub fn into_inner(self) -> ExternRef
Consume a ExternRef
to obtain the inner wasmi::ExternRef
.
Trait Implementations§
Source§impl WasmExternRef<Engine> for ExternRef
impl WasmExternRef<Engine> for ExternRef
Auto Trait Implementations§
impl Freeze for ExternRef
impl RefUnwindSafe for ExternRef
impl Send for ExternRef
impl Sync for ExternRef
impl Unpin for ExternRef
impl UnwindSafe for ExternRef
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