summaryrefslogtreecommitdiff
path: root/src/useflag/mod.rs
blob: 2e7819a83c94f03b4710e537e0ccb709579a5880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use core::fmt;

pub mod parsers;

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct UseFlag(String);

impl UseFlag {
    pub fn get(&self) -> &str {
        self.0.as_str()
    }
}

impl fmt::Display for UseFlag {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{}", self.0)
    }
}