ninja_files_data2/rule/
mod.rs

1mod builder;
2use crate::{Command, Variable, VariableId};
3pub use builder::*;
4use std::collections::BTreeMap;
5
6#[derive(Clone, Debug, PartialEq, Eq)]
7pub struct Rule {
8    pub command: Command,
9    pub shadow: BTreeMap<VariableId, Variable>,
10    pub generator: bool,
11}
12
13impl Rule {
14    pub fn create(command: Command) -> Self {
15        Rule {
16            command,
17            generator: false,
18            shadow: BTreeMap::new(),
19        }
20    }
21}