WasmAbi

Trait WasmAbi 

Source
pub trait WasmAbi {
    type AbiType;

    // Required methods
    fn to_abi(self) -> Self::AbiType;
    fn from_abi(value: Self::AbiType) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn to_abi(self) -> Self::AbiType

Source

fn from_abi(value: Self::AbiType) -> 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 WasmAbi for bool

Source§

type AbiType = u8

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for f32

Source§

type AbiType = f32

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for f64

Source§

type AbiType = f64

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for i8

Source§

type AbiType = i8

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for i16

Source§

type AbiType = i16

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for i32

Source§

type AbiType = i32

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for i64

Source§

type AbiType = i64

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for u8

Source§

type AbiType = u8

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for u16

Source§

type AbiType = u16

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for u32

Source§

type AbiType = u32

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for u64

Source§

type AbiType = u64

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Source§

impl WasmAbi for ()

Source§

type AbiType = ()

Source§

fn to_abi(self) -> Self::AbiType

Source§

fn from_abi(value: Self::AbiType) -> Self

Implementors§