polkavm_derive::default_abi

Trait FromHost

Source
pub trait FromHost {
    type Regs;

    // Required method
    fn from_host(value: Self::Regs) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn from_host(value: Self::Regs) -> Self

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 FromHost for i32

Source§

type Regs = (u64,)

Source§

fn from_host((a0): Self::Regs) -> Self

Source§

impl FromHost for i64

Source§

type Regs = <u64 as FromHost>::Regs

Source§

fn from_host(regs: Self::Regs) -> Self

Source§

impl FromHost for isize

Source§

type Regs = <u64 as FromHost>::Regs

Source§

fn from_host(regs: Self::Regs) -> Self

Source§

impl FromHost for u32

Source§

type Regs = (u64,)

Source§

fn from_host((a0): Self::Regs) -> Self

Source§

impl FromHost for u64

Source§

type Regs = (u64,)

Source§

fn from_host((a0): Self::Regs) -> Self

Source§

impl FromHost for ()

Source§

type Regs = ()

Source§

fn from_host((): ()) -> Self

Source§

impl FromHost for usize

Source§

type Regs = <u64 as FromHost>::Regs

Source§

fn from_host(regs: Self::Regs) -> Self

Implementors§