dependent_sort 0.2.0

A special topological sorting that can arrange the same group of objects together, used to manage dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Error type for topological sort
#[derive(Debug, Copy, Clone)]
pub enum TopologicalError<'i, T, G> {
    /// A task is missing from the list of tasks.
    MissingTask {
        /// Reference of the missing task.
        task: &'i T,
    },
    /// A group is missing from the list of groups.
    MissingGroup {
        /// Reference of the missing group.
        group: &'i G,
    },
}