pub struct CallContext<'cc> { /* private fields */ }Expand description
Calling Context for a host function.
Implementations§
Source§impl<'cc> CallContext<'cc>
impl<'cc> CallContext<'cc>
Sourcepub unsafe fn memory(&self) -> *const [u8]
pub unsafe fn memory(&self) -> *const [u8]
Returns the raw memory of the runtime associated with this context.
§Safety
The returned pointer may get invalidated when wasm function objects are called due to reallocations.
Sourcepub unsafe fn memory_mut(&self) -> *mut [u8]
pub unsafe fn memory_mut(&self) -> *mut [u8]
Returns the raw memory of the runtime associated with this context.
§Safety
The returned pointer may get invalidated when wasm function objects are called due to reallocations.
Auto Trait Implementations§
impl<'cc> Freeze for CallContext<'cc>
impl<'cc> RefUnwindSafe for CallContext<'cc>
impl<'cc> !Send for CallContext<'cc>
impl<'cc> !Sync for CallContext<'cc>
impl<'cc> Unpin for CallContext<'cc>
impl<'cc> UnwindSafe for CallContext<'cc>
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