pub struct LoweredAction {
pub kind: LoweredActionKind,
pub inputs: Vec<Utf8PathBuf>,
pub implicit_inputs: Vec<Utf8PathBuf>,
pub outputs: Vec<Utf8PathBuf>,
pub depfile: Option<Utf8PathBuf>,
pub command: Vec<String>,
pub description: String,
}Expand description
A fully-lowered action: the backend artifact the Ninja writer renders.
Mirrors the IR action shape - argv plus the metadata Ninja needs - but is produced by lowering, never authored directly by the planner.
Fields§
§kind: LoweredActionKindCategorization the backend switches on to pick a rule.
inputs: Vec<Utf8PathBuf>Inputs that participate in the command.
implicit_inputs: Vec<Utf8PathBuf>Inputs the action implicitly depends on but that are not arguments.
outputs: Vec<Utf8PathBuf>Files this action produces.
depfile: Option<Utf8PathBuf>Optional Makefile-style depfile path. Only the GNU/Clang
dialect populates this; the MSVC dialect tracks dependencies
through Ninja’s deps = msvc and leaves it None.
command: Vec<String>Argv-style command, ready to be shell-quoted by the backend.
description: StringShort, human-readable description for build output.
Trait Implementations§
Source§impl Clone for LoweredAction
impl Clone for LoweredAction
Source§fn clone(&self) -> LoweredAction
fn clone(&self) -> LoweredAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoweredAction
impl Debug for LoweredAction
impl Eq for LoweredAction
Source§impl PartialEq for LoweredAction
impl PartialEq for LoweredAction
Source§fn eq(&self, other: &LoweredAction) -> bool
fn eq(&self, other: &LoweredAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoweredAction
Auto Trait Implementations§
impl Freeze for LoweredAction
impl RefUnwindSafe for LoweredAction
impl Send for LoweredAction
impl Sync for LoweredAction
impl Unpin for LoweredAction
impl UnsafeUnpin for LoweredAction
impl UnwindSafe for LoweredAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.