[−][src]Trait wasmer_runtime_core::table::StorableInTable
Trait indicates types that can be stored in tables
Required methods
fn unwrap_self(
storage: &TableStorage,
index: u32
) -> Result<Self, TableAccessError>
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>
self,
storage: &mut TableStorage,
index: u32
) -> Result<(), TableAccessError>
Wrap value to be stored in a table.
Implementors
impl<'a> StorableInTable for Element<'a>
[src]
fn unwrap_self(
storage: &TableStorage,
index: u32
) -> Result<Self, TableAccessError>
[src]
storage: &TableStorage,
index: u32
) -> Result<Self, TableAccessError>
fn wrap_self(
self,
storage: &mut TableStorage,
index: u32
) -> Result<(), TableAccessError>
[src]
self,
storage: &mut TableStorage,
index: u32
) -> Result<(), TableAccessError>
impl<'a, F: Into<Anyfunc<'a>> + TryFrom<Anyfunc<'a>>> StorableInTable for F
[src]
fn unwrap_self(
storage: &TableStorage,
index: u32
) -> Result<Self, TableAccessError>
[src]
storage: &TableStorage,
index: u32
) -> Result<Self, TableAccessError>
fn wrap_self(
self,
storage: &mut TableStorage,
index: u32
) -> Result<(), TableAccessError>
[src]
self,
storage: &mut TableStorage,
index: u32
) -> Result<(), TableAccessError>