Type Alias Pointer

Source
pub type Pointer<T> = Pointer<T>;
Expand description

A raw pointer that can be used in a runtime interface function signature.

Aliased Type§

pub struct Pointer<T> { /* private fields */ }

Trait Implementations§

Source§

impl<'a, T: PointerType> FromFFIValue<'a> for Pointer<T>

Source§

type Owned = Pointer<T>

The owned inner type.
Source§

fn from_ffi_value(_: &mut dyn FunctionContext, arg: u32) -> Result<Self>

Creates Self::Owned from the given arg received through the FFI boundary from the runtime.
Source§

fn take_from_owned(owned: &'a mut Self::Owned) -> Self::Inner

Creates Self::Inner from an owned value.
Source§

fn write_back_into_runtime( _value: Self::Owned, _context: &mut dyn FunctionContext, _arg: Self::FFIType, ) -> Result<()>

Write back a modified value back into the runtime’s memory. Read more
Source§

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

Source§

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

Convert Self::Inner into an FFI value.
Source§

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

Source§

type FFIType = u32

The raw FFI type that is used to pass Self through the host <-> runtime boundary.
Source§

type Inner = Pointer<T>

The inner type without any serialization strategy wrapper.