Struct sabre_sdk::WasmBuffer [−][src]
pub struct WasmBuffer { /* fields omitted */ }
Expand description
A WasmBuffer is a wrapper around a wasm pointer.
It contains a raw wasm pointer to location in executor memory and a bytes repesentation of it’s contents.
It offers methods for accessing the data stored at the location referenced by the raw pointer.
Implementations
Auto Trait Implementations
impl RefUnwindSafe for WasmBuffer
impl Send for WasmBuffer
impl Sync for WasmBuffer
impl Unpin for WasmBuffer
impl UnwindSafe for WasmBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more