[−][src]Struct wasmtime_jit::Namespace
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
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self