pub enum Statement<'a> {
Rule(Rule<'a>),
Build(Build<'a>),
Binding(Binding<'a>),
Default(Default<'a>),
Include(Include<'a>),
Pool(Pool<'a>),
Comment(Comment<'a>),
}
Expand description
Statement.
Sum type of any of the statements that are allowed in a ninja file. Note that this doesn’t include the empty statement consisting of a single empty line.
Variants§
Rule(Rule<'a>)
Rule definition.
Build(Build<'a>)
Build instruction.
Binding(Binding<'a>)
Variable definition.
Default(Default<'a>)
Default instruction.
Include(Include<'a>)
Include instruction.
Pool(Pool<'a>)
Pool definition.
Comment(Comment<'a>)
Comment.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Statement<'a>
impl<'a> RefUnwindSafe for Statement<'a>
impl<'a> Send for Statement<'a>
impl<'a> Sync for Statement<'a>
impl<'a> Unpin for Statement<'a>
impl<'a> UnwindSafe for Statement<'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