pub struct DAGBuilder { /* private fields */ }Implementations§
Source§impl DAGBuilder
impl DAGBuilder
pub fn new() -> DAGBuilder
Sourcepub fn parent<F>(self, bf: F) -> Selfwhere
F: FnMut(Self) -> Self,
pub fn parent<F>(self, bf: F) -> Selfwhere
F: FnMut(Self) -> Self,
Add a parent task to current task
Sourcepub fn child<F>(self, bf: F) -> Selfwhere
F: FnMut(Self) -> Self,
pub fn child<F>(self, bf: F) -> Selfwhere
F: FnMut(Self) -> Self,
Add a child task to current task
pub fn merge(self, other: DAGBuilder) -> Self
pub fn build(self) -> Result<DAG>
Trait Implementations§
Source§impl Default for DAGBuilder
impl Default for DAGBuilder
Source§fn default() -> DAGBuilder
fn default() -> DAGBuilder
Returns the “default value” for a type. Read more
Source§impl<F: TryIntoTask> From<F> for DAGBuilder
impl<F: TryIntoTask> From<F> for DAGBuilder
Auto Trait Implementations§
impl Freeze for DAGBuilder
impl RefUnwindSafe for DAGBuilder
impl Send for DAGBuilder
impl Sync for DAGBuilder
impl Unpin for DAGBuilder
impl UnwindSafe for DAGBuilder
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