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>

§

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>

Create SelfInstance from the given
source§

impl<T: PointerType> IntoFFIValue for Pointer<T>

source§

fn into_ffi_value(self, _: &mut dyn FunctionContext) -> Result<u32>

Convert self into a ffi value.
source§

impl<T: PointerType> RIType for Pointer<T>

§

type FFIType = u32

The ffi type that is used to represent Self.