Added contains_key method to Namespace

This commit is contained in:
Syrus 2019-07-07 17:10:34 -07:00
parent cb7a1f4486
commit d9eee3f35a

View File

@ -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 {