[][src]Trait wasmer::LikeNamespace

pub trait LikeNamespace {
    fn get_namespace_export(&self, name: &str) -> Option<Export>;
fn get_namespace_exports(&self) -> Vec<(String, Export)>; }

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

Required methods

fn get_namespace_export(&self, name: &str) -> Option<Export>

Gets an export by name.

fn get_namespace_exports(&self) -> Vec<(String, Export)>

Gets all exports in the namespace.

Loading content...

Implementors

impl LikeNamespace for Exports[src]

Loading content...