ninja_files_data2/arg/mod.rs
1mod as_ref;
2mod try_from;
3
4#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
5pub struct Arg(String);
6
7#[allow(dead_code)]
8#[derive(Clone, Debug)]
9pub struct InvalidArg(String);
10
11impl Arg {
12 pub fn try_create<S>(str: S) -> Result<Arg, InvalidArg>
13 where
14 S: Into<String>,
15 {
16 Ok(Arg(str.into()))
17 }
18}