[−][src]Struct wasmer_runtime_core::import::Namespace
The top-level container for the two-level wasm imports
Methods
impl Namespace
[src]
pub fn new() -> Self
[src]
Create a new empty Namespace
.
pub fn insert<S, E>(
&mut self,
name: S,
export: E
) -> Option<Box<dyn IsExport + Send>> where
S: Into<String>,
E: IsExport + Send + 'static,
[src]
&mut self,
name: S,
export: E
) -> Option<Box<dyn IsExport + Send>> where
S: Into<String>,
E: IsExport + Send + 'static,
Insert a new Export
into the namespace with the given name.
pub fn contains_key<S>(&mut self, key: S) -> bool where
S: Into<String>,
[src]
S: Into<String>,
Returns true if the Namespace
contains the given name.
Trait Implementations
impl LikeNamespace for Namespace
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Namespace
impl Send for Namespace
impl !Sync for Namespace
impl Unpin for Namespace
impl !UnwindSafe for Namespace
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,