impl fmt::Display for Atom

This commit is contained in:
John Turner
2025-10-26 01:23:28 -04:00
parent 71379a900b
commit 4d69986e18
3 changed files with 256 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
use core::fmt;
pub mod parsers;
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -8,3 +10,9 @@ impl UseFlag {
self.0.as_str()
}
}
impl fmt::Display for UseFlag {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}