mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-22 17:02:13 +00:00
Added contains_key method to Namespace
This commit is contained in:
parent
cb7a1f4486
commit
d9eee3f35a
@ -189,6 +189,13 @@ impl Namespace {
|
|||||||
{
|
{
|
||||||
self.map.insert(name.into(), Box::new(export))
|
self.map.insert(name.into(), Box::new(export))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn contains_key<S>(&mut self, key: S) -> bool
|
||||||
|
where
|
||||||
|
S: Into<String>,
|
||||||
|
{
|
||||||
|
self.map.contains_key(&key.into())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LikeNamespace for Namespace {
|
impl LikeNamespace for Namespace {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user