Type Definition 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.
Trait Implementations
sourceimpl<T: PointerType> FromFFIValue for Pointer<T>
impl<T: PointerType> FromFFIValue for Pointer<T>
type SelfInstance = Self
type SelfInstance = Self
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. Read more
sourcefn 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 given
sourceimpl<T: PointerType> IntoFFIValue for Pointer<T>
impl<T: PointerType> IntoFFIValue for Pointer<T>
sourcefn 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.