ninja-files-data 0.1.0

Core data structures for ninja files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod as_ref;
mod try_from;

#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct Process(String);

#[derive(Clone, Debug)]
pub struct InvalidProcess(pub String);

impl Process {
    pub fn try_create<S>(str: S) -> Result<Self, InvalidProcess>
    where
        S: Into<String>,
    {
        Ok(Process(str.into()))
    }
}