Files
gentoo-utils/src/useflag/mod.rs
2025-10-27 21:59:15 -04:00

21 lines
388 B
Rust

use core::fmt;
use get::Get;
pub mod parsers;
#[derive(Clone, Debug, PartialEq, Eq, Get)]
pub struct UseFlag(#[get(method = "name")] String);
#[derive(Clone, Debug, PartialEq, Eq, Get)]
pub struct IUseFlag {
default: bool,
flag: UseFlag,
}
impl fmt::Display for UseFlag {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}