diff options
Diffstat (limited to 'src/confindent.rs')
| -rw-r--r-- | src/confindent.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/confindent.rs b/src/confindent.rs index 40ea3a2..0b9f4f5 100644 --- a/src/confindent.rs +++ b/src/confindent.rs @@ -47,6 +47,10 @@ impl ConfigurationPair { } impl ConfigurationPair { + pub fn has<K: Into<ConfigurationKey<'static>>>(&self, key: K) -> bool { + self.get(key).is_some() + } + pub fn get<K: Into<ConfigurationKey<'static>>>(&self, key: K) -> Option<&str> { let key = key.into(); self.scurvy |
