Trait uptown_funk::ToWasm[][src]

pub trait ToWasm {
    type To;
    type State: Convert<Self::State> + Convert<()>;
    fn to(
        state: &mut Self::State,
        executor: &impl Executor,
        host_value: Self
    ) -> Result<Self::To, Trap>; }

Associated Types

Loading content...

Required methods

fn to(
    state: &mut Self::State,
    executor: &impl Executor,
    host_value: Self
) -> Result<Self::To, Trap>
[src]

Loading content...

Implementations on Foreign Types

impl ToWasm for u32[src]

type To = u32

type State = ()

impl ToWasm for u64[src]

type To = u64

type State = ()

impl ToWasm for i64[src]

type To = i64

type State = ()

impl ToWasm for u16[src]

type To = u32

type State = ()

impl ToWasm for u8[src]

type To = u32

type State = ()

impl ToWasm for bool[src]

type To = u32

type State = ()

impl<T: ToWasm> ToWasm for Result<T, Trap>[src]

type To = T::To

type State = T::State

impl<T: ToWasm + HasOk> ToWasm for Result<(), T>[src]

type To = T::To

type State = T::State

Loading content...

Implementors

impl ToWasm for Trap[src]

type To = ()

type State = ()

Loading content...