pub struct TaskGraphBuilder<N: TreeNode = SyntaxNode> { /* private fields */ }Expand description
A builder for task evaluation graphs.
Implementations§
Source§impl<N: TreeNode> TaskGraphBuilder<N>
impl<N: TreeNode> TaskGraphBuilder<N>
Sourcepub fn build(
self,
version: SupportedVersion,
task: &TaskDefinition<N>,
diagnostics: &mut Diagnostics,
custom_type_present: impl Fn(&str) -> bool,
) -> DiGraph<TaskGraphNode<N>, bool>
pub fn build( self, version: SupportedVersion, task: &TaskDefinition<N>, diagnostics: &mut Diagnostics, custom_type_present: impl Fn(&str) -> bool, ) -> DiGraph<TaskGraphNode<N>, bool>
Builds a new task evaluation graph.
The nodes are TaskGraphNode and the edges represent a reverse
dependency relationship (A -> B => “node A is depended on by B”).
The edge data indicates whether or not the edge is an implicit edge between the node and the command section.
Commands implicitly depend on all inputs, environment variables, the requirements section, the runtime section, and the hints section.
Outputs implicitly depend on the command section.
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for TaskGraphBuilder<N>
impl<N> RefUnwindSafe for TaskGraphBuilder<N>
impl<N> Send for TaskGraphBuilder<N>
impl<N> Sync for TaskGraphBuilder<N>
impl<N> Unpin for TaskGraphBuilder<N>
impl<N> UnsafeUnpin for TaskGraphBuilder<N>
impl<N> UnwindSafe for TaskGraphBuilder<N>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more