Trait wasmer_runtime_fl::LikeNamespace[][src]

pub trait LikeNamespace {
    fn get_export(&self, name: &str) -> Option<Export>;
fn get_exports(&self) -> Vec<(String, Export), Global>;
fn maybe_insert(&mut self, name: &str, export: Export) -> Option<()>; }
Expand description

This trait represents objects that act as a namespace for imports. For example, an Instance or ImportObject could be considered namespaces that could provide imports to an instance.

Required methods

Gets an export by name.

Gets all exports in the namespace.

Maybe insert an Export by name into the namespace.

Implementations on Foreign Types

Implementors