Type Alias sp_runtime_interface::Pointer
source · pub type Pointer<T> = Pointer<T>;
Expand description
A pointer that can be used in a runtime interface function signature.
Aliased Type§
struct Pointer<T> { /* private fields */ }
Trait Implementations§
source§impl<T: PointerType> FromFFIValue for Pointer<T>
impl<T: PointerType> FromFFIValue for Pointer<T>
§type SelfInstance = Pointer<T>
type SelfInstance = Pointer<T>
As
Self
can be an unsized type, it needs to be represented by a sized type at the host.
This SelfInstance
is the sized type.source§fn from_ffi_value(_: &mut dyn FunctionContext, arg: u32) -> Result<Self>
fn from_ffi_value(_: &mut dyn FunctionContext, arg: u32) -> Result<Self>
Create
SelfInstance
from the givensource§impl<T: PointerType> IntoFFIValue for Pointer<T>
impl<T: PointerType> IntoFFIValue for Pointer<T>
source§fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>
fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>
Convert
self
into a ffi value.