[][src]Struct wasmtime_jit::Namespace

pub struct Namespace { /* fields omitted */ }

A namespace containing instances keyed by name.

Note that Namespace implements the Resolver trait, so it can resolve imports using defined exports.

Methods

impl Namespace[src]

pub fn new() -> Self[src]

Construct a new Namespace.

pub fn name_instance(&mut self, name: String, instance: InstanceHandle)[src]

Install a new InstanceHandle in this Namespace, optionally with the given name.

pub fn get_instance(&mut self, name: &str) -> Option<&mut InstanceHandle>[src]

Get the instance registered with the given instance_name.

Trait Implementations

impl Resolver for Namespace[src]

Auto Trait Implementations

impl Unpin for Namespace

impl !Send for Namespace

impl !Sync for Namespace

impl !RefUnwindSafe for Namespace

impl !UnwindSafe for Namespace

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self