ninja_files_data/arg/
mod.rs

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