[][src]Trait wasmer_runtime_core_asml_fork::table::StorableInTable

pub trait StorableInTable: Sized {
    fn unwrap_self(
        storage: &TableStorage,
        index: u32
    ) -> Result<Self, TableAccessError>;
fn wrap_self(
        self,
        storage: &mut TableStorage,
        index: u32
    ) -> Result<(), TableAccessError>; }

Trait indicates types that can be stored in tables

Required methods

fn unwrap_self(
    storage: &TableStorage,
    index: u32
) -> Result<Self, TableAccessError>

Attempt to lookup self in the given table.

fn wrap_self(
    self,
    storage: &mut TableStorage,
    index: u32
) -> Result<(), TableAccessError>

Wrap value to be stored in a table.

Loading content...

Implementors

impl<'a> StorableInTable for Element<'a>[src]

impl<'a, F: Into<Anyfunc<'a>> + TryFrom<Anyfunc<'a>>> StorableInTable for F[src]

Loading content...