use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum MetadataKey {
FileCounter,
SymbolCounter,
}
impl MetadataKey {
pub fn as_str(&self) -> &'static str {
match self {
Self::FileCounter => "file_counter",
Self::SymbolCounter => "symbol_counter",
}
}
}
impl fmt::Display for MetadataKey {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(self.as_str())
}
}