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