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>
impl<'a, T: PointerType> FromFFIValue<'a> for Pointer<T>
Source§fn from_ffi_value(_: &mut dyn FunctionContext, arg: u32) -> Result<Self>
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
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<()>
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 moreSource§impl<T: PointerType> IntoFFIValue for Pointer<T>
impl<T: PointerType> IntoFFIValue for Pointer<T>
Source§fn into_ffi_value(value: Self, _: &mut dyn FunctionContext) -> Result<u32>
fn into_ffi_value(value: Self, _: &mut dyn FunctionContext) -> Result<u32>
Convert
Self::Inner
into an FFI value.