forked from gentoo-utils/gentoo-utils
impl IUseFlag type
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user