diff options
| author | gennyble <gen@nyble.dev> | 2026-07-15 18:20:36 -0500 |
|---|---|---|
| committer | gennyble <gen@nyble.dev> | 2026-07-15 18:20:36 -0500 |
| commit | 2a6fe2dcd206d6acc58801920ce74c9f0b0afa93 (patch) | |
| tree | b59a6bf695db423c5e9702d4a7fb50c3edfe2b19 /src/confindent.rs | |
| parent | f66317c8df497256e5aca6685c58cd7e3f6dc217 (diff) | |
| download | scurvy-main.tar.gz scurvy-main.zip | |
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 |
