Skip to main content

TryDag

Trait TryDag 

Source
pub trait TryDag<D: DagNode>: IntoIterator<Item = D> + Sized {
    // Provided method
    fn try_dag(self) -> Result<DagTree<D>, DagError> { ... }
}
Expand description

Extension to IntoIterator: Allow DAG resolution to be called by the method

Provided Methods§

Source

fn try_dag(self) -> Result<DagTree<D>, DagError>

Consume self to resolve the DAG and return a topo-ordered DagTree

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<D: DagNode, I: IntoIterator<Item = D>> TryDag<D> for I