polkavm_derive::default_abi

Trait IntoHost

Source
pub trait IntoHost {
    type Regs;
    type Destructor;

    // Required method
    fn into_host(value: Self) -> (Self::Regs, Self::Destructor);
}

Required Associated Types§

Required Methods§

Source

fn into_host(value: Self) -> (Self::Regs, Self::Destructor)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoHost for i32

Source§

type Regs = (u32,)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl IntoHost for i64

Source§

type Regs = (u32, u32)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl IntoHost for isize

Source§

type Regs = (u32,)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl IntoHost for u32

Source§

type Regs = (u32,)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl IntoHost for u64

Source§

type Regs = (u32, u32)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl IntoHost for ()

Source§

type Regs = ()

Source§

type Destructor = ()

Source§

fn into_host((): Self) -> (Self::Regs, Self::Destructor)

Source§

impl IntoHost for usize

Source§

type Regs = (u32,)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl<T> IntoHost for *const T

Source§

type Regs = (u32,)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Source§

impl<T> IntoHost for *mut T

Source§

type Regs = (u32,)

Source§

type Destructor = ()

Source§

fn into_host(value: Self) -> (Self::Regs, ())

Implementors§