pub struct ExternRef {}Expand description
Extern host reference type
Trait Implementations§
Source§impl WasmExternRef<Engine> for ExternRef
impl WasmExternRef<Engine> for ExternRef
Source§fn new<T: 'static + Send + Sync>(_: impl AsContextMut<Engine>, _: T) -> Self
fn new<T: 'static + Send + Sync>(_: impl AsContextMut<Engine>, _: T) -> Self
Creates a new reference wrapping the given value.
Source§fn downcast<'a, 's: 'a, T: 'static, S: 'static>(
&self,
_: <Engine as WasmEngine>::StoreContext<'s, S>,
) -> Result<&'a T>
fn downcast<'a, 's: 'a, T: 'static, S: 'static>( &self, _: <Engine as WasmEngine>::StoreContext<'s, S>, ) -> Result<&'a T>
Returns a shared reference to the underlying data.
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