mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-12 22:05:33 +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))
|
||||
}
|
||||
|
||||
pub fn contains_key<S>(&mut self, key: S) -> bool
|
||||
where
|
||||
S: Into<String>,
|
||||
{
|
||||
self.map.contains_key(&key.into())
|
||||
}
|
||||
}
|
||||
|
||||
impl LikeNamespace for Namespace {
|
||||
|
Loading…
Reference in New Issue
Block a user