pub struct Plan {
pub jobs: Vec<Job>,
pub link: Option<LinkJob>,
pub notes: Vec<String>,
}Expand description
The whole plan for one invocation.
Fields§
§jobs: Vec<Job>One per input, in command line order.
link: Option<LinkJob>The link step, or None when a mode flag stopped short of it.
notes: Vec<String>Things worth saying under -v that are not errors, such as an object file passed on a
command line that is not linking.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn new(
opts: &Options,
inputs: &[Input],
output: Option<&str>,
) -> Result<Plan, PlanError>
pub fn new( opts: &Options, inputs: &[Input], output: Option<&str>, ) -> Result<Plan, PlanError>
Builds the plan for one invocation.
output is the argument of -o, if it was given.
§Errors
Returns a message when the inputs and the mode flags do not describe a compilation:
an out of scope language, -o naming one file for several outputs, or nothing to do.
Trait Implementations§
impl Eq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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