Struct Run

Source
pub struct Run<'a> {
    pub driver: &'a Driver,
    pub plan: Plan,
    pub config_data: Figment,
    pub global_config: GlobalConfig,
}

Fields§

§driver: &'a Driver§plan: Plan§config_data: Figment§global_config: GlobalConfig

Implementations§

Source§

impl<'a> Run<'a>

Source

pub fn new(driver: &'a Driver, plan: Plan) -> Self

Source

pub fn show(self)

Just print the plan for debugging purposes.

Source

pub fn show_dot(self)

Print a GraphViz representation of the plan.

Source

pub fn emit_to_stdout(&self) -> EmitResult

Print the build.ninja file to stdout.

Source

pub fn emit_to_dir(&self, dir: &Utf8Path) -> EmitResult

Ensure that a directory exists and write build.ninja inside it.

Source

pub fn emit_and_run(&self, dir: &Utf8Path) -> EmitResult

Emit build.ninja to a temporary directory and then actually execute ninja.

Auto Trait Implementations§

§

impl<'a> Freeze for Run<'a>

§

impl<'a> !RefUnwindSafe for Run<'a>

§

impl<'a> !Send for Run<'a>

§

impl<'a> !Sync for Run<'a>

§

impl<'a> Unpin for Run<'a>

§

impl<'a> !UnwindSafe for Run<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.