fn_graph 0.8.1

Dynamically managed function graph execution.
Documentation
/// Edge between two functions.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Edge {
    /// Logical / functional dependency.
    ///
    /// The function must be run after the previous as requested by the library
    /// consumer.
    Logic,
    /// There is a data dependency.
    ///
    /// The function cannot be run because a previous function is accessing data
    /// that this function requires.
    Data,
}

#[cfg(test)]
mod tests {
    use super::Edge;

    #[test]
    fn clone() {
        let edge = Edge::Logic;

        assert_eq!(Edge::Logic, edge.clone());
    }

    #[test]
    fn debug() {
        let edge = Edge::Logic;

        assert_eq!("Logic", format!("{edge:?}"));
    }
}