pub struct Rule<'a> {
pub name: Identifier<'a>,
pub bindings: Vec<Binding<'a>>,
}
Expand description
Rule definition.
This defines the command to execute to produce the outputs of a build
instruction.
Fields§
§name: Identifier<'a>
Rule name.
bindings: Vec<Binding<'a>>
Rule variables.
Only certain variable names are allowed here while some are required. Please refer to the ninja documentation.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Rule<'a>
impl<'a> RefUnwindSafe for Rule<'a>
impl<'a> Send for Rule<'a>
impl<'a> Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> UnwindSafe for Rule<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more