pub struct Job {
pub input: String,
pub kind: InputKind,
pub phases: Vec<Phase>,
pub output: Output,
pub aux_base: Option<String>,
}Expand description
Everything that has to happen to one input file.
Fields§
§input: StringThe input path as written.
kind: InputKindWhat we decided it is.
phases: Vec<Phase>The phases to run, in order. Empty when the input goes straight to the linker.
output: OutputWhere the last phase writes.
aux_base: Option<String>What the files -save-temps keeps are called, without the suffix that says which one it
is, or None when there is nothing to keep.
Nothing to keep is the usual case: the flag was not given, or it was and this job has no
step whose result the compilation would have thrown away. -E -save-temps is the second
of those, since the preprocessed text is the output and is already being written.
Implementations§
Source§impl Job
impl Job
Sourcepub fn saved_text(&self) -> Option<String>
pub fn saved_text(&self) -> Option<String>
Where the preprocessed text goes when -save-temps asked for it to be kept.
None when the flag was not given, when the input arrives preprocessed already and there
is no phase 4 to keep the result of, or when the text is this job’s own output and is
being written anyway.
Trait Implementations§
impl Eq for Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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
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
key and return true if they are equal.