use std::collections::BTreeSet;
#[allow(dead_code)]
pub struct SectionGuard {
known_keys: BTreeSet<String>,
}
#[allow(dead_code)]
impl SectionGuard {
pub fn new<I>(keys: I) -> Self
where
I: IntoIterator,
I::Item: Into<String>,
{
let known_keys = keys.into_iter().map(Into::into).collect();
Self { known_keys }
}
pub fn known_keys(&self) -> &BTreeSet<String> {
&self.known_keys
}
}