impl IUseFlag type

This commit is contained in:
John Turner
2025-10-27 21:58:35 -04:00
parent 4789790733
commit 847e5fc019
2 changed files with 23 additions and 2 deletions

View File

@@ -1,10 +1,18 @@
use core::fmt;
use get::Get;
pub mod parsers;
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct UseFlag(String);
#[derive(Clone, Debug, PartialEq, Eq, Get)]
pub struct IUseFlag {
default: bool,
flag: UseFlag,
}
impl UseFlag {
pub fn get(&self) -> &str {
self.0.as_str()