DependencyScan

Struct DependencyScan 

Source
pub struct DependencyScan<'s, 'a, 'b, 'c>
where 's: 'a,
{ /* private fields */ }
Expand description

DependencyScan manages the process of scanning the files in a graph and updating the dirty/outputs_ready state of all the nodes and edges.

Implementations§

Source§

impl<'s, 'a, 'b, 'c> DependencyScan<'s, 'a, 'b, 'c>
where 's: 'a,

Source

pub fn new( build_log: &'a BuildLog<'s>, deps_log: &'b DepsLog, disk_interface: &'c dyn DiskInterface, ) -> Self

Source

pub fn build_log(&self) -> Option<&'a BuildLog<'s>>

Source

pub fn deps_log(&self) -> &'b DepsLog

Source

pub fn recompute_dirty( &self, state: &mut State, node_idx: NodeIndex, ) -> Result<(), String>

Update the |dirty_| state of the given node by inspecting its input edge. Examine inputs, outputs, and command lines to judge whether an edge needs to be re-run, and update outputs_ready_ and each outputs’ |dirty_| state accordingly. Returns false on failure.

Auto Trait Implementations§

§

impl<'s, 'a, 'b, 'c> Freeze for DependencyScan<'s, 'a, 'b, 'c>

§

impl<'s, 'a, 'b, 'c> !RefUnwindSafe for DependencyScan<'s, 'a, 'b, 'c>

§

impl<'s, 'a, 'b, 'c> !Send for DependencyScan<'s, 'a, 'b, 'c>

§

impl<'s, 'a, 'b, 'c> !Sync for DependencyScan<'s, 'a, 'b, 'c>

§

impl<'s, 'a, 'b, 'c> Unpin for DependencyScan<'s, 'a, 'b, 'c>

§

impl<'s, 'a, 'b, 'c> !UnwindSafe for DependencyScan<'s, 'a, 'b, 'c>

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.